Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/Ultimaker/Cura.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiCacador <38703952+FiCacador@users.noreply.github.com>2019-10-09 03:56:48 +0300
committerGitHub <noreply@github.com>2019-10-09 03:56:48 +0300
commit9158857477338bc5134fcd4eb868eac60464f633 (patch)
tree787e104c61c95ce0394f153f76ddc0c142f77289 /plugins/AMFReader
parentcadc145008e5011f4dccf8e05f768773c52bd078 (diff)
Reverse Y axis
When an AMF file was imported, the Y axis was reversed, creating a mirrored object. This reverses the Y axis so the object is correctly imported.
Diffstat (limited to 'plugins/AMFReader')
-rw-r--r--plugins/AMFReader/AMFReader.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/AMFReader/AMFReader.py b/plugins/AMFReader/AMFReader.py
index d35fbe3d40..f997c918c5 100644
--- a/plugins/AMFReader/AMFReader.py
+++ b/plugins/AMFReader/AMFReader.py
@@ -94,7 +94,7 @@ class AMFReader(MeshReader):
if t.tag == "x":
v[0] = float(t.text) * scale
elif t.tag == "y":
- v[2] = float(t.text) * scale
+ v[2] = - float(t.text) * scale
elif t.tag == "z":
v[1] = float(t.text) * scale
amf_mesh_vertices.append(v)