call entityChanged after settings flags

This commit is contained in:
Seth Alves 2017-05-19 10:11:02 -07:00
parent 0c12baa258
commit 77ce8a19cf

View file

@ -1644,7 +1644,9 @@ void EntityItem::updateParentID(const QUuid& value) {
forEachDescendant([&](SpatiallyNestablePointer object) {
if (object->getNestableType() == NestableType::Entity) {
EntityItemPointer entity = std::static_pointer_cast<EntityItem>(object);
entity->markDirtyFlags(Simulation::DIRTY_POSITION);
entity->markDirtyFlags(Simulation::DIRTY_MOTION_TYPE |
Simulation::DIRTY_COLLISION_GROUP |
Simulation::DIRTY_POSITION);
tree->entityChanged(entity);
}
});