summaryrefslogtreecommitdiffstats
path: root/src/runtime/dragon/dragonentity.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/dragon/dragonentity.cpp')
-rw-r--r--src/runtime/dragon/dragonentity.cpp30
1 files changed, 0 insertions, 30 deletions
diff --git a/src/runtime/dragon/dragonentity.cpp b/src/runtime/dragon/dragonentity.cpp
index 2ffee1c..a4e838c 100644
--- a/src/runtime/dragon/dragonentity.cpp
+++ b/src/runtime/dragon/dragonentity.cpp
@@ -67,7 +67,6 @@ void Entity::initializeFromPeer(const Qt3DCore::QNodeCreatedChangeBasePtr &chang
// Note this is *not* the parentId as that is the ID of the parent QNode, which is not
// necessarily the same as the parent QEntity (which may be further up the tree).
m_parentEntityId = data.parentEntityId;
- m_childEntityIds = data.childEntityIds;
for (const auto &idAndType : qAsConst(data.componentIdsAndTypes))
addComponent(idAndType);
}
@@ -93,35 +92,6 @@ void Entity::sceneChangeEvent(const Qt3DCore::QSceneChangePtr &e)
markDirty();
break;
}
-
- case PropertyValueAdded: {
- QPropertyNodeAddedChangePtr change = qSharedPointerCast<QPropertyNodeAddedChange>(e);
- if (change->metaObject()->inherits(&QEntity::staticMetaObject)) {
- if (!m_childEntityIds.contains(change->addedNodeId())) {
- m_childEntityIds.push_back(change->addedNodeId());
- markDirty(DirtyTreeInfo{});
- }
- }
- break;
- }
-
- case PropertyValueRemoved: {
- QPropertyNodeRemovedChangePtr change = qSharedPointerCast<QPropertyNodeRemovedChange>(e);
- if (change->metaObject()->inherits(&QEntity::staticMetaObject)) {
- m_childEntityIds.removeAll(change->removedNodeId());
- markDirty(DirtyTreeInfo{});
- }
- break;
- }
-
- case PropertyUpdated: {
- auto propertyChange = qSharedPointerCast<QPropertyUpdatedChange>(e);
- if (propertyChange->propertyName() == QByteArrayLiteral("enabled")) {
- m_enabled = propertyChange->value().toBool();
- markDirty();
- }
- break;
- }
default:
break;
}