forked from qt-creator/qt-creator
QmlDesigner: Fix group selection for 3D scenes that have Models as root
Change-Id: If6ec2bcb4a4627fcf658e23f6998115a68718ee8 Fixes: QDS-2467 Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
@@ -266,9 +266,11 @@ 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
|
||||
// Ctrl-click: No objects selected: Act as single select
|
||||
|
Reference in New Issue
Block a user