Fix Issue 1368: Camera viewing angle resets after mouselook.

Only reset FOV when right click was held or released just before leaving, now.
This commit is contained in:
Inusaito Sayori
2014-02-03 17:20:25 -05:00
parent b0972de510
commit 2acfbf12ed

View File

@@ -780,7 +780,11 @@ void LLToolCompGun::handleSelect()
void LLToolCompGun::handleDeselect()
{
LLToolComposite::handleDeselect();
LLViewerCamera::getInstance()->loadDefaultFOV(); // Singu Note: Load Default FOV in case we were zoomed in
if (mRightMouseButton || mTimerFOV.getStarted()) // Singu Note: Load Default FOV if we were zoomed in
{
LLViewerCamera::getInstance()->loadDefaultFOV();
mRightMouseButton = false;
}
setMouseCapture(FALSE);
}