Apply transformation again

CURA-382
This commit is contained in:
Jaime van Kessel 2016-10-07 14:31:48 +02:00
parent 47870f43ef
commit 8ac7558677

View file

@ -157,4 +157,10 @@ class ThreeMFReader(MeshReader):
except:
return None
global_container_stack = UM.Application.getInstance().getGlobalContainerStack()
if global_container_stack:
translation = Vector(x=-global_container_stack.getProperty("machine_width", "value") / 2, y=0,
z=global_container_stack.getProperty("machine_depth", "value") / 2)
result.translate(translation, SceneNode.TransformSpace.World)
return result