mirror of
https://github.com/OpenMW/openmw.git
synced 2025-01-19 21:23:54 +00:00
Fix preview and vanity cameras
This commit is contained in:
parent
d17e1e83d5
commit
a15758ac85
1 changed files with 2 additions and 1 deletions
|
@ -270,7 +270,8 @@ void RenderingManager::rotateObject(const MWWorld::Ptr &ptr)
|
|||
{
|
||||
Ogre::Vector3 rot(ptr.getRefData().getPosition().rot);
|
||||
|
||||
if(ptr.getRefData().getHandle() == mCamera->getHandle())
|
||||
if(ptr.getRefData().getHandle() == mCamera->getHandle() &&
|
||||
!mCamera->isVanityOrPreviewModeEnabled())
|
||||
mCamera->rotateCamera(rot, false);
|
||||
|
||||
Ogre::Quaternion newo = Ogre::Quaternion(Ogre::Radian(-rot.z), Ogre::Vector3::UNIT_Z);
|
||||
|
|
Loading…
Reference in a new issue