mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-16 03:07:53 -06:00
Center of group node is now on correct position.
Fixes Ultimaker/Cura#378
This commit is contained in:
parent
76d2fd3665
commit
d14816bae5
1 changed files with 2 additions and 1 deletions
|
@ -449,7 +449,8 @@ class CuraApplication(QtApplication):
|
||||||
|
|
||||||
for node in Selection.getAllSelectedObjects():
|
for node in Selection.getAllSelectedObjects():
|
||||||
node.setParent(group_node)
|
node.setParent(group_node)
|
||||||
|
group_node.setCenterPosition(group_node.getBoundingBox().center)
|
||||||
|
group_node.translate(Vector(0,group_node.getBoundingBox().center.y,0))
|
||||||
for node in group_node.getChildren():
|
for node in group_node.getChildren():
|
||||||
Selection.remove(node)
|
Selection.remove(node)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue