mirror of
https://github.com/overte-org/overte.git
synced 2025-08-10 13:33:27 +02:00
Kill the entity in processRemovedEntities before calling prepareEntityForDelete
This was removed back in 9d92546a
and causes an assertion (#337)
This commit is contained in:
parent
affcc6f918
commit
95570d5abc
1 changed files with 1 additions and 0 deletions
|
@ -784,6 +784,7 @@ void EntityTree::processRemovedEntities(const DeleteEntityOperator& theOperator)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (theEntity->isSimulated()) {
|
if (theEntity->isSimulated()) {
|
||||||
|
theEntity->die();
|
||||||
_simulation->prepareEntityForDelete(theEntity);
|
_simulation->prepareEntityForDelete(theEntity);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue