Skip to content
Snippets Groups Projects
Commit 30658d31 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Fix hot settings

parent 4d73062c
No related branches found
No related tags found
No related merge requests found
...@@ -431,7 +431,7 @@ void LLAvatarActions::showPick(const LLUUID& avatar_id, const LLUUID& pick_id) ...@@ -431,7 +431,7 @@ void LLAvatarActions::showPick(const LLUUID& avatar_id, const LLUUID& pick_id)
{ {
const LLFloaterProfileLegacy* profile = LLFloaterReg::showTypedInstance<LLFloaterProfileLegacy>( const LLFloaterProfileLegacy* profile = LLFloaterReg::showTypedInstance<LLFloaterProfileLegacy>(
"legacy_profile", LLSD().with("avatar_id", avatar_id), TAKE_FOCUS_YES); "legacy_profile", LLSD().with("avatar_id", avatar_id), TAKE_FOCUS_YES);
auto* tab = dynamic_cast<LLPanelProfileLegacy::LLPanelProfilePicks*>(profile->expandTab("avatar_picks_tab")); /*auto* tab = */dynamic_cast<LLPanelProfileLegacy::LLPanelProfilePicks*>(profile->expandTab("avatar_picks_tab"));
// *TODO: Finish // *TODO: Finish
} }
else else
...@@ -477,7 +477,8 @@ bool LLAvatarActions::isPickTabSelected(const LLUUID& avatar_id) ...@@ -477,7 +477,8 @@ bool LLAvatarActions::isPickTabSelected(const LLUUID& avatar_id)
{ {
if (avatar_id.notNull()) if (avatar_id.notNull())
{ {
if (gSkinSettings.getBool("LegacyProfile")) static LLCachedControl<bool> legacy_profile(gSkinSettings, "LegacyProfile");
if (legacy_profile)
{ {
const LLFloaterProfileLegacy* profile = LLFloaterReg::findTypedInstance<LLFloaterProfileLegacy>( const LLFloaterProfileLegacy* profile = LLFloaterReg::findTypedInstance<LLFloaterProfileLegacy>(
"legacy_profile", LLSD().with("avatar_id", avatar_id)); "legacy_profile", LLSD().with("avatar_id", avatar_id));
...@@ -578,7 +579,8 @@ bool LLAvatarActions::profileVisible(const LLUUID& avatar_id) ...@@ -578,7 +579,8 @@ bool LLAvatarActions::profileVisible(const LLUUID& avatar_id)
LLFloater* LLAvatarActions::findProfileFloater(const LLUUID& avatar_id) LLFloater* LLAvatarActions::findProfileFloater(const LLUUID& avatar_id)
{ {
LLFloater* profile = nullptr; LLFloater* profile = nullptr;
if (gSkinSettings.getBool("LegacyProfile")) static LLCachedControl<bool> legacy_profile(gSkinSettings, "LegacyProfile");
if (legacy_profile)
profile = LLFloaterReg::findTypedInstance<LLFloaterProfileLegacy>("legacy_profile", LLSD().with("avatar_id", avatar_id)); profile = LLFloaterReg::findTypedInstance<LLFloaterProfileLegacy>("legacy_profile", LLSD().with("avatar_id", avatar_id));
else else
profile = LLFloaterReg::findTypedInstance<LLFloaterProfile>("profile", LLSD().with("id", avatar_id)); profile = LLFloaterReg::findTypedInstance<LLFloaterProfile>("profile", LLSD().with("id", avatar_id));
......
...@@ -474,6 +474,7 @@ void LLDrawPoolWater::renderWater() ...@@ -474,6 +474,7 @@ void LLDrawPoolWater::renderWater()
LLColor3 light_diffuse(0, 0, 0); LLColor3 light_diffuse(0, 0, 0);
// F32 light_exp = 0.0f; // F32 light_exp = 0.0f;
static LLCachedControl<bool> has_normal_mips(gSavedSettings, "RenderWaterMipNormal");
LLEnvironment& environment = LLEnvironment::instance(); LLEnvironment& environment = LLEnvironment::instance();
LLViewerCamera& viewerCamera = LLViewerCamera::instance(); LLViewerCamera& viewerCamera = LLViewerCamera::instance();
const LLSettingsWater::ptr_t& pwater = environment.getCurrentWater(); const LLSettingsWater::ptr_t& pwater = environment.getCurrentWater();
...@@ -481,7 +482,6 @@ void LLDrawPoolWater::renderWater() ...@@ -481,7 +482,6 @@ void LLDrawPoolWater::renderWater()
LLVector3 light_dir = environment.getLightDirection(); LLVector3 light_dir = environment.getLightDirection();
bool sun_up = environment.getIsSunUp(); bool sun_up = environment.getIsSunUp();
bool moon_up = environment.getIsMoonUp(); bool moon_up = environment.getIsMoonUp();
bool has_normal_mips = gSavedSettings.getBOOL("RenderWaterMipNormal");
bool underwater = viewerCamera.cameraUnderWater(); bool underwater = viewerCamera.cameraUnderWater();
if (sun_up) if (sun_up)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment