mirror of
https://github.com/OpenMW/openmw.git
synced 2025-11-08 13:16:39 +00:00
Stop postponing physics for objects that _don't_ have physics
This commit is contained in:
parent
0e76a6edb5
commit
87014016a2
1 changed files with 2 additions and 1 deletions
|
|
@ -375,7 +375,6 @@ namespace MWWorld
|
|||
if (object->getShapeInstance()->mVisualCollisionType == Resource::VisualCollisionType::None)
|
||||
mNavigator.removeObject(DetourNavigator::ObjectId(object), navigatorUpdateGuard);
|
||||
mPhysics->remove(ptr);
|
||||
ptr.mRef->mData.mPhysicsPostponed = false;
|
||||
}
|
||||
else if (mPhysics->getActor(ptr))
|
||||
{
|
||||
|
|
@ -383,6 +382,8 @@ namespace MWWorld
|
|||
mRendering.removeActorPath(ptr);
|
||||
mPhysics->remove(ptr);
|
||||
}
|
||||
else
|
||||
ptr.mRef->mData.mPhysicsPostponed = false;
|
||||
MWBase::Environment::get().getLuaManager()->objectRemovedFromScene(ptr);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue