mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 23:17:32 -06:00
3MF files are now correctly loaded inside the build platform
CURA-382
This commit is contained in:
parent
fe014efdfb
commit
c240f42b64
1 changed files with 2 additions and 2 deletions
|
@ -141,12 +141,12 @@ class ThreeMFReader(MeshReader):
|
||||||
flip_matrix = Matrix()
|
flip_matrix = Matrix()
|
||||||
flip_matrix._data[1, 1] = 0
|
flip_matrix._data[1, 1] = 0
|
||||||
flip_matrix._data[1, 2] = 1
|
flip_matrix._data[1, 2] = 1
|
||||||
flip_matrix._data[2, 1] = 1
|
flip_matrix._data[2, 1] = -1
|
||||||
flip_matrix._data[2, 2] = 0
|
flip_matrix._data[2, 2] = 0
|
||||||
result.setTransformation(flip_matrix)
|
result.setTransformation(flip_matrix)
|
||||||
if global_container_stack:
|
if global_container_stack:
|
||||||
translation = Vector(x=-global_container_stack.getProperty("machine_width", "value") / 2, z=0,
|
translation = Vector(x=-global_container_stack.getProperty("machine_width", "value") / 2, z=0,
|
||||||
y=global_container_stack.getProperty("machine_depth", "value") / 2)
|
y=-global_container_stack.getProperty("machine_depth", "value") / 2)
|
||||||
result.translate(translation)
|
result.translate(translation)
|
||||||
result.setEnabled(False) # The result should not be moved in any way, so disable it.
|
result.setEnabled(False) # The result should not be moved in any way, so disable it.
|
||||||
return result
|
return result
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue