#4803 Fix crash on cameraUnderWater

updateEnvironment tried to access dead camera
master
Andrey Kleshchev 2025-10-08 23:26:34 +03:00
parent 6fc138dc44
commit c257304ae7
1 changed files with 8 additions and 5 deletions

View File

@ -134,12 +134,15 @@ void LLFloaterFixedEnvironment::onClose(bool app_quitting)
{
doCloseInventoryFloater(app_quitting);
LLEnvironment::instance().setSelectedEnvironment(LLEnvironment::ENV_LOCAL);
LLEnvironment::instance().setCurrentEnvironmentSelection(LLEnvironment::ENV_LOCAL);
LLEnvironment::instance().clearEnvironment(LLEnvironment::ENV_EDIT);
if (!app_quitting)
{
LLEnvironment::instance().setSelectedEnvironment(LLEnvironment::ENV_LOCAL);
LLEnvironment::instance().setCurrentEnvironmentSelection(LLEnvironment::ENV_LOCAL);
LLEnvironment::instance().clearEnvironment(LLEnvironment::ENV_EDIT);
mSettings.reset();
syncronizeTabs();
mSettings.reset();
syncronizeTabs();
}
}
void LLFloaterFixedEnvironment::refresh()