forked from qt-creator/qt-creator
Use Repeater3D instead of Object3D in component complete check
Do not use QQuick3DObject when disallowing recursive component complete check so that the animations get added to the instance server. Fixes: QDS-5731 Change-Id: Iff8e39f74d68b312b66d68adaf6ab79d625f88f8 Reviewed-by: Thomas Hartmann <thomas.hartmann@qt.io>
This commit is contained in:
committed by
Thomas Hartmann
parent
b289f5d13a
commit
dfbac3161b
@@ -63,6 +63,7 @@
|
|||||||
|
|
||||||
#ifdef QUICK3D_MODULE
|
#ifdef QUICK3D_MODULE
|
||||||
#include <private/qquick3dobject_p.h>
|
#include <private/qquick3dobject_p.h>
|
||||||
|
#include <private/qquick3drepeater_p.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
namespace QmlDesigner {
|
namespace QmlDesigner {
|
||||||
@@ -379,7 +380,7 @@ void doComponentCompleteRecursive(QObject *object, NodeInstanceServer *nodeInsta
|
|||||||
if (item && DesignerSupport::isComponentComplete(item))
|
if (item && DesignerSupport::isComponentComplete(item))
|
||||||
return;
|
return;
|
||||||
#ifdef QUICK3D_MODULE
|
#ifdef QUICK3D_MODULE
|
||||||
auto obj3d = qobject_cast<QQuick3DObject *>(object);
|
auto obj3d = qobject_cast<QQuick3DRepeater *>(object);
|
||||||
if (obj3d && QQuick3DObjectPrivate::get(obj3d)->componentComplete)
|
if (obj3d && QQuick3DObjectPrivate::get(obj3d)->componentComplete)
|
||||||
return;
|
return;
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user