diff options
Diffstat (limited to 'src/core/nodes/qentity.cpp')
-rw-r--r-- | src/core/nodes/qentity.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/nodes/qentity.cpp b/src/core/nodes/qentity.cpp index a0f980b5a..0e8c596d0 100644 --- a/src/core/nodes/qentity.cpp +++ b/src/core/nodes/qentity.cpp @@ -117,7 +117,7 @@ void QEntity::addComponent(QComponent *comp) // Sending a full fledged component in the notification as we'll need // to know which type of component it was and its properties to create // the backend object - QScenePropertyChangePtr propertyChange(new QScenePropertyChange(ComponentAdded, this)); + QScenePropertyChangePtr propertyChange(new QScenePropertyChange(ComponentAdded, QSceneChange::Node, id())); propertyChange->setPropertyName("component"); propertyChange->setValue(QVariant::fromValue(QNodePtr(QNode::clone(comp), &QNodePrivate::nodePtrDeleter))); d->notifyObservers(propertyChange); @@ -137,7 +137,7 @@ void QEntity::removeComponent(QComponent *comp) // Sending just the component id as it is the only part needed to // cleanup the backend object. This way we avoid a clone which might // fail in the case of large scenes. - QScenePropertyChangePtr propertyChange(new QScenePropertyChange(ComponentRemoved, this)); + QScenePropertyChangePtr propertyChange(new QScenePropertyChange(ComponentRemoved, QSceneChange::Node, id())); propertyChange->setValue(QVariant::fromValue(comp->id())); propertyChange->setPropertyName("componentId"); d->notifyObservers(propertyChange); |