3
0
Fork 0
mirror of https://github.com/JulianGro/overte.git synced 2025-04-30 14:03:10 +02:00

fix bug masking physics shape changes

This commit is contained in:
Andrew Meadows 2015-05-22 11:33:45 -07:00
parent 0431e8da36
commit bf225e4886

View file

@ -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;
}
}