FIRE-15189: Fix ClickToWalk not allowing mouse-walk (behavior change)

Thu, 18 Dec 2014 15:28:57 +0100

author
Ansariel
date
Thu, 18 Dec 2014 15:28:57 +0100
changeset 43088
3adb3ead1196
parent 43087
6fdeb99b7cb3
child 43089
9bc36a62fac4

FIRE-15189: Fix ClickToWalk not allowing mouse-walk (behavior change)

Fixed the click to walk feature not allowing the mouse-walk, with help from Lirusaito Faers (Singularity viewer)

This will case a slightly different behavior when click to walk is enabled: If the
avatar is walking, you click on the avatar and move the mouse, the camera will
be able to rotate on all 3 axis instead of only the x-axis.

indra/newview/lltoolpie.cpp file | annotate | diff | revisions
     1.1 --- a/indra/newview/lltoolpie.cpp	Thu Dec 18 15:03:38 2014 +0100
     1.2 +++ b/indra/newview/lltoolpie.cpp	Thu Dec 18 15:28:57 2014 +0100
     1.3 @@ -384,7 +384,10 @@
     1.4  			}
     1.5  			object = (LLViewerObject*)object->getParent();
     1.6  		}
     1.7 -		if (object && object == gAgentAvatarp && !gSavedSettings.getBOOL("ClickToWalk"))
     1.8 +		// <FS:Ansariel> FIRE-15189: Fix ClickToWalk not allowing mouse-walk (behavior change)
     1.9 +		//if (object && object == gAgentAvatarp && !gSavedSettings.getBOOL("ClickToWalk"))
    1.10 +		if (object && object == gAgentAvatarp)
    1.11 +		// </FS:Ansariel>
    1.12  		{
    1.13  			// we left clicked on avatar, switch to focus mode
    1.14  			mMouseButtonDown = false;

mercurial