aboutsummaryrefslogtreecommitdiffstats
path: root/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml
diff options
context:
space:
mode:
Diffstat (limited to 'share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml')
-rw-r--r--share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml4
1 files changed, 3 insertions, 1 deletions
diff --git a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml
index 6eb68643ed7..95245aae5eb 100644
--- a/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml
+++ b/share/qtcreator/qml/qmlpuppet/mockfiles/EditView3D.qml
@@ -266,8 +266,10 @@ Item {
{
var theObject = object;
if (selectionMode === EditView3D.SelectionMode.Group) {
- while (theObject && theObject !== activeScene && theObject.parent !== activeScene)
+ while (theObject && theObject !== activeScene
+ && (activeScene instanceof Model || theObject.parent !== activeScene)) {
theObject = theObject.parent;
+ }
}
// Object selection logic:
// Regular click: Clear any multiselection, single-selects the clicked object