mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Select the group when right clicking an object that is part of a group
Instead of selecting the individual object. Contributes to CURA-3609
This commit is contained in:
parent
86d3cbadca
commit
89310cb41e
1 changed files with 3 additions and 0 deletions
|
@ -1339,4 +1339,7 @@ class CuraApplication(QtApplication):
|
|||
if not Selection.hasSelection():
|
||||
node = self.getController().getScene().findObject(self.getRenderer().getRenderPass("selection").getIdAtPosition(x, y))
|
||||
if node:
|
||||
while(node.getParent() and node.getParent().callDecoration("isGroup")):
|
||||
node = node.getParent()
|
||||
|
||||
Selection.add(node)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue