mirror of
https://github.com/overte-org/overte.git
synced 2025-04-19 15:03:53 +02:00
don't add an action of we're about to remove it
This commit is contained in:
parent
bce8b0cc1b
commit
55975fd611
1 changed files with 3 additions and 1 deletions
|
@ -239,7 +239,9 @@ void PhysicalEntitySimulation::applyActionChanges() {
|
|||
if (_physicsEngine) {
|
||||
lock();
|
||||
foreach (EntityActionPointer actionToAdd, _actionsToAdd) {
|
||||
_physicsEngine->addAction(actionToAdd);
|
||||
if (!_actionsToRemove.contains(actionToAdd->getID())) {
|
||||
_physicsEngine->addAction(actionToAdd);
|
||||
}
|
||||
}
|
||||
_actionsToAdd.clear();
|
||||
foreach (QUuid actionToRemove, _actionsToRemove) {
|
||||
|
|
Loading…
Reference in a new issue