mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
Reset all transformations now also resets object above buildplate
CURA-2233
This commit is contained in:
parent
bbcd43ef01
commit
dd1effdb81
1 changed files with 2 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue