forked from qt-creator/qt-creator
Allow selecting particle system as root
Not allowing this causes selection problems. Fixes: QDS-5371 Change-Id: I99d2591a3beb07e39413ba046f3f25e81f0cef50 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
This commit is contained in:
@@ -1858,7 +1858,8 @@ void Qt5InformationNodeInstanceServer::changeSelection(const ChangeSelectionComm
|
|||||||
#ifdef QUICK3D_MODULE
|
#ifdef QUICK3D_MODULE
|
||||||
if (qobject_cast<QQuick3DModel *>(object)
|
if (qobject_cast<QQuick3DModel *>(object)
|
||||||
|| qobject_cast<QQuick3DCamera *>(object)
|
|| qobject_cast<QQuick3DCamera *>(object)
|
||||||
|| qobject_cast<QQuick3DAbstractLight *>(object)) {
|
|| qobject_cast<QQuick3DAbstractLight *>(object)
|
||||||
|
|| qobject_cast<QQuick3DParticleSystem *>(object)) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// Node is a component if it has node children that have no instances
|
// Node is a component if it has node children that have no instances
|
||||||
|
Reference in New Issue
Block a user