mirror of
https://github.com/lubosz/overte.git
synced 2025-04-24 16:43:33 +02:00
fix bug masking physics shape changes
This commit is contained in:
parent
0431e8da36
commit
bf225e4886
1 changed files with 2 additions and 0 deletions
|
@ -165,6 +165,8 @@ void ObjectMotionState::handleHardAndEasyChanges(uint32_t flags, PhysicsEngine*
|
|||
if (_shape != newShape) {
|
||||
_shape = newShape;
|
||||
_body->setCollisionShape(_shape);
|
||||
} else {
|
||||
// huh... the shape didn't actually change, so we clear the DIRTY_SHAPE flag
|
||||
flags &= ~EntityItem::DIRTY_SHAPE;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue