mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 19:04:32 +02:00
More PR comments
This commit is contained in:
parent
b7ffb96adf
commit
2a15726aaf
1 changed files with 6 additions and 4 deletions
|
@ -247,10 +247,12 @@ void PhysicalEntitySimulation::handleCollisionEvents(const CollisionEvents& coll
|
|||
void PhysicalEntitySimulation::addAction(EntityActionPointer action) {
|
||||
if (_physicsEngine) {
|
||||
// FIXME put fine grain locking into _physicsEngine
|
||||
QMutexLocker lock(&_mutex);
|
||||
const QUuid& actionID = action->getID();
|
||||
if (_physicsEngine->getActionByID(actionID)) {
|
||||
qDebug() << "warning -- PhysicalEntitySimulation::addAction -- adding an action that was already in _physicsEngine";
|
||||
{
|
||||
QMutexLocker lock(&_mutex);
|
||||
const QUuid& actionID = action->getID();
|
||||
if (_physicsEngine->getActionByID(actionID)) {
|
||||
qDebug() << "warning -- PhysicalEntitySimulation::addAction -- adding an action that was already in _physicsEngine";
|
||||
}
|
||||
}
|
||||
EntitySimulation::addAction(action);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue