SL-15407 The previous view mode is not highlighted on the 'Camera controls'

meow-7.2.2
Andrey Kleshchev 2021-06-17 21:55:50 +03:00
parent b5d3a5b56a
commit 9a36c1ac21
1 changed files with 2 additions and 2 deletions

View File

@ -453,18 +453,18 @@ void LLFloaterCamera::setMode(ECameraControlMode mode)
void LLFloaterCamera::switchMode(ECameraControlMode mode)
{
setMode(mode);
switch (mode)
{
case CAMERA_CTRL_MODE_PRESETS:
case CAMERA_CTRL_MODE_PAN:
sFreeCamera = false;
setMode(mode); // depends onto sFreeCamera
clear_camera_tool();
break;
case CAMERA_CTRL_MODE_FREE_CAMERA:
sFreeCamera = true;
setMode(mode);
activate_camera_tool();
break;