MAINT-1968 FIXED Reset camera when toggling flying same as all other methods.
parent
b5bedce5c2
commit
1c08b2a2e9
|
|
@ -303,7 +303,15 @@ void LLFloaterMove::onFlyButtonClick()
|
|||
void LLFloaterMove::setMovementMode(const EMovementMode mode)
|
||||
{
|
||||
mCurrentMode = mode;
|
||||
gAgent.setFlying(MM_FLY == mode);
|
||||
|
||||
if(MM_FLY == mode)
|
||||
{
|
||||
LLAgent::toggleFlying();
|
||||
}
|
||||
else
|
||||
{
|
||||
gAgent.setFlying(FALSE);
|
||||
}
|
||||
|
||||
// attempts to set avatar flying can not set it real flying in some cases.
|
||||
// For ex. when avatar fell down & is standing up.
|
||||
|
|
|
|||
Loading…
Reference in New Issue