summaryrefslogtreecommitdiffstats
path: root/src/core/changes/qcomponentremovedchange.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/changes/qcomponentremovedchange.cpp')
-rw-r--r--src/core/changes/qcomponentremovedchange.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/changes/qcomponentremovedchange.cpp b/src/core/changes/qcomponentremovedchange.cpp
index e1625ac93..e0a940781 100644
--- a/src/core/changes/qcomponentremovedchange.cpp
+++ b/src/core/changes/qcomponentremovedchange.cpp
@@ -41,6 +41,7 @@
#include "qcomponentremovedchange_p.h"
#include <Qt3DCore/qcomponent.h>
#include <Qt3DCore/qentity.h>
+#include <private/qnode_p.h>
QT_BEGIN_NAMESPACE
@@ -51,7 +52,7 @@ QComponentRemovedChangePrivate::QComponentRemovedChangePrivate(const QEntity *en
: QSceneChangePrivate()
, m_entityId(entity->id())
, m_componentId(component->id())
- , m_componentMetaObject(component->metaObject())
+ , m_componentMetaObject(QNodePrivate::findStaticMetaObject(component->metaObject()))
{
}