mirror of
https://github.com/lubosz/overte.git
synced 2025-08-07 20:06:02 +02:00
call entityChanged after settings flags
This commit is contained in:
parent
0c12baa258
commit
77ce8a19cf
1 changed files with 3 additions and 1 deletions
|
@ -1644,7 +1644,9 @@ void EntityItem::updateParentID(const QUuid& value) {
|
||||||
forEachDescendant([&](SpatiallyNestablePointer object) {
|
forEachDescendant([&](SpatiallyNestablePointer object) {
|
||||||
if (object->getNestableType() == NestableType::Entity) {
|
if (object->getNestableType() == NestableType::Entity) {
|
||||||
EntityItemPointer entity = std::static_pointer_cast<EntityItem>(object);
|
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);
|
tree->entityChanged(entity);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in a new issue