From 4a510f7f6f92868ade2e11c3d8ade303bd232caa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antti=20M=C3=A4=C3=A4tt=C3=A4?= Date: Thu, 11 Nov 2021 09:48:26 +0200 Subject: [PATCH] Allow selecting particle system as root Not allowing this causes selection problems. Fixes: QDS-5371 Change-Id: I99d2591a3beb07e39413ba046f3f25e81f0cef50 Reviewed-by: Thomas Hartmann Reviewed-by: Miikka Heikkinen Reviewed-by: Qt CI Bot --- .../qml2puppet/instances/qt5informationnodeinstanceserver.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp index 419e75cfa04..3fcda0a18df 100644 --- a/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp +++ b/share/qtcreator/qml/qmlpuppet/qml2puppet/instances/qt5informationnodeinstanceserver.cpp @@ -1858,7 +1858,8 @@ void Qt5InformationNodeInstanceServer::changeSelection(const ChangeSelectionComm #ifdef QUICK3D_MODULE if (qobject_cast(object) || qobject_cast(object) - || qobject_cast(object)) { + || qobject_cast(object) + || qobject_cast(object)) { return true; } // Node is a component if it has node children that have no instances