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:
Antti Määttä
2021-11-11 09:48:26 +02:00
parent c073810ba5
commit 4a510f7f6f

View File

@@ -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