L101 : Make 'scaleFactor' value useful

The 'scaleFactor' value was not used upon export.
This commit is contained in:
Arthus Belliqueux 2020-07-21 16:18:53 +00:00 committed by GitHub
parent b3b6fd4475
commit 2a7de4b914
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 3 deletions

View File

@ -98,8 +98,8 @@ class ExportRSD(bpy.types.Operator, ExportHelper):
# Write vertices
f.write("# Vertices\n")
for v in mesh.vertices:
f.write("%E %E %E\n" % (v.co.x, -v.co.z, v.co.y))
f.write("%E %E %E\n" % (v.co.x * self.exp_scaleFactor, -v.co.z * self.exp_scaleFactor, v.co.y * self.exp_scaleFactor))
# Write normals
f.write("# Normals\n")
f.write("# Smooth normals begin here\n")
@ -299,4 +299,4 @@ def unregister():
bpy.types.INFO_MT_file_export.remove(menu_func);
if __name__ == "__main__":
register()
register()