summaryrefslogtreecommitdiff
path: root/indra/newview/llenvironment.cpp
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-08-30 00:16:44 +0100
committerGraham Linden <graham@lindenlab.com>2018-08-30 00:16:44 +0100
commit100a58778b6f96513978369820fcf328dcb21226 (patch)
tree682d5f1bed66a2c39be3463129e0cbca51d7e634 /indra/newview/llenvironment.cpp
parent0b3a4c75568a1648926c24463ed11cba53cfddb8 (diff)
MAINT-8944 Fix missed mNextFooTextureId updates when jumping between keyframes by forcing mReplaced when sky is replaced.
Diffstat (limited to 'indra/newview/llenvironment.cpp')
-rw-r--r--indra/newview/llenvironment.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indra/newview/llenvironment.cpp b/indra/newview/llenvironment.cpp
index 8f703d0035..6e19df0a94 100644
--- a/indra/newview/llenvironment.cpp
+++ b/indra/newview/llenvironment.cpp
@@ -1622,7 +1622,10 @@ void LLEnvironment::DayInstance::setSky(const LLSettingsSky::ptr_t &psky)
mType = TYPE_FIXED;
mInitialized = false;
+ bool different_sky = mSky != psky;
+
mSky = psky;
+ mSky->mReplaced |= different_sky;
mSky->update();
mBlenderSky.reset();