mirror of
https://github.com/overte-org/overte.git
synced 2025-04-20 01:03:57 +02:00
fix action (grab) deadlock
This commit is contained in:
parent
d255b36236
commit
2b0285adc2
1 changed files with 3 additions and 1 deletions
|
@ -2109,6 +2109,7 @@ bool EntityItem::addAction(EntitySimulationPointer simulation, EntityDynamicPoin
|
|||
removeActionInternal(action->getID());
|
||||
}
|
||||
});
|
||||
updateQueryAACube();
|
||||
|
||||
return result;
|
||||
}
|
||||
|
@ -2167,6 +2168,8 @@ bool EntityItem::removeAction(EntitySimulationPointer simulation, const QUuid& a
|
|||
checkWaitingToRemove(simulation);
|
||||
success = removeActionInternal(actionID);
|
||||
});
|
||||
updateQueryAACube();
|
||||
|
||||
return success;
|
||||
}
|
||||
|
||||
|
@ -2194,7 +2197,6 @@ bool EntityItem::removeActionInternal(const QUuid& actionID, EntitySimulationPoi
|
|||
_dirtyFlags |= Simulation::DIRTY_PHYSICS_ACTIVATION;
|
||||
_dirtyFlags |= Simulation::DIRTY_COLLISION_GROUP; // may need to not collide with own avatar
|
||||
setDynamicDataNeedsTransmit(true);
|
||||
updateQueryAACube();
|
||||
return success;
|
||||
}
|
||||
return false;
|
||||
|
|
Loading…
Reference in a new issue