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:
@@ -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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user