mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-03-03 01:49:41 +00:00
Rotations: fix the rotation order for doors
This commit is contained in:
parent
90b6fa5ef1
commit
9e3eb8291f
1 changed files with 2 additions and 0 deletions
|
@ -1393,6 +1393,8 @@ namespace MWWorld
|
|||
float diff = duration * osg::DegreesToRadians(90.f);
|
||||
float targetRot = std::min(std::max(minRot, oldRot + diff * (it->second == 1 ? 1 : -1)), maxRot);
|
||||
rotateObject(it->first, objPos.rot[0], objPos.rot[1], targetRot);
|
||||
// the rotation order we want to use
|
||||
mWorldScene->updateObjectRotation(it->first, false);
|
||||
|
||||
bool reached = (targetRot == maxRot && it->second) || targetRot == minRot;
|
||||
|
||||
|
|
Loading…
Reference in a new issue