mirror of
https://github.com/overte-org/overte.git
synced 2025-04-21 08:04:01 +02:00
restore setFlag in simulateKinematicMotion()
This commit is contained in:
parent
a53cb2e532
commit
a08ab8e127
1 changed files with 1 additions and 1 deletions
|
@ -979,7 +979,7 @@ void EntityItem::simulateKinematicMotion(float timeElapsed, bool setFlags) {
|
|||
transform.setTranslation(position);
|
||||
setLocalTransformAndVelocities(transform, linearVelocity, angularVelocity);
|
||||
|
||||
if (!isMoving) {
|
||||
if (setFlags && !isMoving) {
|
||||
// flag this entity to transition from KINEMATIC to STATIC
|
||||
_dirtyFlags |= Simulation::DIRTY_MOTION_TYPE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue