Skip to content

Commit

Permalink
Default construct EntityPtr parameter when removing an entity from it…
Browse files Browse the repository at this point in the history
…s parent on removal from scene.
  • Loading branch information
cadaver committed Apr 1, 2014
1 parent 94a38ae commit ea09c4b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/TundraCore/Scene/Scene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ bool Scene::RemoveEntity(entity_id_t id, AttributeChange::Type change)

// If the entity is parented, remove from the parent. No signaling is necessary
if (del_entity->Parent())
del_entity->SetParent(0, AttributeChange::Disconnected);
del_entity->SetParent(EntityPtr(), AttributeChange::Disconnected);

// Remove all child entities. This may be recursive
del_entity->RemoveAllChildren(change);
Expand Down

0 comments on commit ea09c4b

Please sign in to comment.