mirror of
https://github.com/OpenMW/openmw.git
synced 2025-03-01 09:09:42 +00:00
Fix animation of teleported non-teleporting doors.
This commit is contained in:
parent
ce7f6f31c9
commit
7113638848
1 changed files with 5 additions and 0 deletions
|
@ -102,6 +102,11 @@ namespace MWLua
|
|||
world->rotateObject(newPtr, rot, MWBase::RotationFlag_none);
|
||||
if (placeOnGround)
|
||||
world->adjustPosition(newPtr, true);
|
||||
if (cls.isDoor())
|
||||
{ // Change "original position and rotation" because without it teleported animated doors don't work
|
||||
// properly.
|
||||
newPtr.getCellRef().setPosition(newPtr.getRefData().getPosition());
|
||||
}
|
||||
if (!newPtr.getRefData().isEnabled())
|
||||
world->enable(newPtr);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue