mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-01 16:24:41 +08:00
Center of group node is now on correct position.
Fixes Ultimaker/Cura#378
This commit is contained in:
parent
76d2fd3665
commit
d14816bae5
@ -449,7 +449,8 @@ class CuraApplication(QtApplication):
|
||||
|
||||
for node in Selection.getAllSelectedObjects():
|
||||
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():
|
||||
Selection.remove(node)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user