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:
Arjen Hiemstra 2017-04-24 17:10:00 +02:00
parent 86d3cbadca
commit 89310cb41e

View file

@ -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)