mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-10 07:15:03 -06:00
Resetting transformation now works again for ungrouped nodes
CURA-2925
This commit is contained in:
parent
2e1f4e3740
commit
a71bb63318
1 changed files with 3 additions and 5 deletions
|
@ -799,11 +799,9 @@ class CuraApplication(QtApplication):
|
|||
for node in nodes:
|
||||
# Ensure that the object is above the build platform
|
||||
node.removeDecorator(ZOffsetDecorator.ZOffsetDecorator)
|
||||
center_y = 0
|
||||
if node.callDecoration("isGroup"):
|
||||
center_y = node.getWorldPosition().y - node.getBoundingBox().bottom
|
||||
else:
|
||||
center_y = node.getMeshData().getCenterPosition().y
|
||||
|
||||
center_y = node.getWorldPosition().y - node.getBoundingBox().bottom
|
||||
|
||||
op.addOperation(SetTransformOperation(node, Vector(0, center_y, 0), Quaternion(), Vector(1, 1, 1)))
|
||||
op.push()
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue