Open correct camera floater from camera presets pulldown

master
Ansariel 2020-12-10 15:51:58 +01:00
parent e616579902
commit adfc8ec1ce
1 changed files with 5 additions and 1 deletions

View File

@ -146,5 +146,9 @@ void LLPanelPresetsCameraPulldown::onViewButtonClick(const LLSD& user_data)
// close the minicontrol, we're bringing up the big one
setVisible(FALSE);
LLFloaterReg::toggleInstanceOrBringToFront("camera");
// <FS:Ansariel> Optional small camera floater
//LLFloaterReg::toggleInstanceOrBringToFront("camera");
std::string floater_name = gSavedSettings.getBOOL("FSUseSmallCameraFloater") ? "fs_camera_small" : "camera";
LLFloaterReg::toggleInstanceOrBringToFront(floater_name);
// </FS:Ansariel>
}