Reset all transformations now also resets object above buildplate

CURA-2233
This commit is contained in:
Jaime van Kessel 2016-09-02 14:27:18 +02:00
parent bbcd43ef01
commit dd1effdb81

View file

@ -723,7 +723,8 @@ class CuraApplication(QtApplication):
for node in nodes:
# Ensure that the object is above the build platform
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)
op.addOperation(SetTransformOperation(node, Vector(0,0,0), Quaternion(), Vector(1, 1, 1)))
op.addOperation(SetTransformOperation(node, Vector(0, node.getMeshData().getCenterPosition().y, 0), Quaternion(), Vector(1, 1, 1)))
op.push()