From 89310cb41e669ff3adad1600e443a90f1a71b97f Mon Sep 17 00:00:00 2001 From: Arjen Hiemstra Date: Mon, 24 Apr 2017 17:10:00 +0200 Subject: [PATCH] Select the group when right clicking an object that is part of a group Instead of selecting the individual object. Contributes to CURA-3609 --- cura/CuraApplication.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cura/CuraApplication.py b/cura/CuraApplication.py index 5f71495f77..5786c82147 100755 --- a/cura/CuraApplication.py +++ b/cura/CuraApplication.py @@ -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)