mirror of
https://github.com/lubosz/overte.git
synced 2025-08-29 17:07:08 +02:00
set more physics flags dirty when an entity parent is found
This commit is contained in:
parent
77ce8a19cf
commit
7220fe0ad8
1 changed files with 3 additions and 1 deletions
|
@ -1258,7 +1258,9 @@ void EntityTree::fixupMissingParents() {
|
|||
entity->forEachDescendant([&](SpatiallyNestablePointer object) {
|
||||
if (object->getNestableType() == NestableType::Entity) {
|
||||
EntityItemPointer descendantEntity = std::static_pointer_cast<EntityItem>(object);
|
||||
descendantEntity->markDirtyFlags(Simulation::DIRTY_POSITION);
|
||||
descendantEntity->markDirtyFlags(Simulation::DIRTY_MOTION_TYPE |
|
||||
Simulation::DIRTY_COLLISION_GROUP |
|
||||
Simulation::DIRTY_POSITION);
|
||||
entityChanged(descendantEntity);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue