summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2018-08-06 16:22:06 +0300
committerandreykproductengine <andreykproductengine@lindenlab.com>2018-08-06 16:22:06 +0300
commit21c6e6063f52398802fd63a81914eb42b76f3ff3 (patch)
treed4dac93891e5799c180c0ca632df88ace5945cde /indra
parent057d115ac3de49db0e35066975441e64111c8369 (diff)
MAINT-8952 EEP Changing one Day Cycle Keyframe can change other keyframes
Diffstat (limited to 'indra')
-rw-r--r--indra/llinventory/llsettingsdaycycle.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llinventory/llsettingsdaycycle.cpp b/indra/llinventory/llsettingsdaycycle.cpp
index a43eae16fe..ff9614fb10 100644
--- a/indra/llinventory/llsettingsdaycycle.cpp
+++ b/indra/llinventory/llsettingsdaycycle.cpp
@@ -262,7 +262,12 @@ bool LLSettingsDay::initialize()
haswater |= true;
else
hassky |= true;
- mDayTracks[i][keyframe] = setting;
+
+ // Build clone since:
+ // - can use settings from "used" multiple times
+ // - settings can reuse LLSDs they were initialized from
+ // - LLSDs are 'smart' and can reuse them self multiple times
+ mDayTracks[i][keyframe] = setting->buildDerivedClone();
}
}
}