mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-09-14 13:13:16 +08:00
Reset all transformations now also resets object above buildplate
CURA-2233
This commit is contained in:
parent
bbcd43ef01
commit
dd1effdb81
@ -723,7 +723,8 @@ class CuraApplication(QtApplication):
|
|||||||
for node in nodes:
|
for node in nodes:
|
||||||
# Ensure that the object is above the build platform
|
# Ensure that the object is above the build platform
|
||||||
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)
|
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()
|
op.push()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user