From a15758ac85e24dec9b872ad20a6d52d4eb7d9aa9 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Mon, 29 Apr 2013 08:48:45 -0700 Subject: [PATCH] Fix preview and vanity cameras --- apps/openmw/mwrender/renderingmanager.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/openmw/mwrender/renderingmanager.cpp b/apps/openmw/mwrender/renderingmanager.cpp index 7180f6efd..60a9b22a3 100644 --- a/apps/openmw/mwrender/renderingmanager.cpp +++ b/apps/openmw/mwrender/renderingmanager.cpp @@ -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);