mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 20:23:06 +02:00
fix server-side bug in kinematics
This commit is contained in:
parent
9c32a38fb6
commit
5b4b0a7c25
1 changed files with 2 additions and 2 deletions
|
@ -100,7 +100,7 @@ void SimpleEntitySimulation::changeEntityInternal(EntityItemPointer entity) {
|
||||||
}
|
}
|
||||||
} else if (entity->isMovingRelativeToParent()) {
|
} else if (entity->isMovingRelativeToParent()) {
|
||||||
SetOfEntities::iterator itr = _simpleKinematicEntities.find(entity);
|
SetOfEntities::iterator itr = _simpleKinematicEntities.find(entity);
|
||||||
if (itr != _simpleKinematicEntities.end()) {
|
if (itr == _simpleKinematicEntities.end()) {
|
||||||
_simpleKinematicEntities.insert(entity);
|
_simpleKinematicEntities.insert(entity);
|
||||||
entity->setLastSimulated(usecTimestampNow());
|
entity->setLastSimulated(usecTimestampNow());
|
||||||
}
|
}
|
||||||
|
@ -118,7 +118,7 @@ void SimpleEntitySimulation::changeEntityInternal(EntityItemPointer entity) {
|
||||||
|
|
||||||
if (entity->isMovingRelativeToParent()) {
|
if (entity->isMovingRelativeToParent()) {
|
||||||
SetOfEntities::iterator itr = _simpleKinematicEntities.find(entity);
|
SetOfEntities::iterator itr = _simpleKinematicEntities.find(entity);
|
||||||
if (itr != _simpleKinematicEntities.end()) {
|
if (itr == _simpleKinematicEntities.end()) {
|
||||||
_simpleKinematicEntities.insert(entity);
|
_simpleKinematicEntities.insert(entity);
|
||||||
entity->setLastSimulated(usecTimestampNow());
|
entity->setLastSimulated(usecTimestampNow());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue