forked from qt-creator/qt-creator
QmlDesigner: Fix puppet crash on View3D removal
Fixes: QDS-9591 Change-Id: Idff3e996c66296863b7549b7d8649049497642e0 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io> Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
80372c2b7d
commit
a39ad9f754
@@ -827,9 +827,11 @@ void Qt5InformationNodeInstanceServer::handleView3DDestroyed([[maybe_unused]] QO
|
||||
#ifdef QUICK3D_MODULE
|
||||
auto view = qobject_cast<QQuick3DViewport *>(obj);
|
||||
m_view3Ds.remove(obj);
|
||||
if (view) {
|
||||
removeNode3D(view->scene());
|
||||
if (view && view == m_active3DView)
|
||||
if (view == m_active3DView)
|
||||
m_active3DView = nullptr;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user