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,8 +266,10 @@ Item {
|
|||||||
{
|
{
|
||||||
var theObject = object;
|
var theObject = object;
|
||||||
if (selectionMode === EditView3D.SelectionMode.Group) {
|
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;
|
theObject = theObject.parent;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
// Object selection logic:
|
// Object selection logic:
|
||||||
// Regular click: Clear any multiselection, single-selects the clicked object
|
// Regular click: Clear any multiselection, single-selects the clicked object
|
||||||
|
Reference in New Issue
Block a user