summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGraham Linden <graham@lindenlab.com>2018-08-06 20:59:35 +0100
committerGraham Linden <graham@lindenlab.com>2018-08-06 20:59:35 +0100
commitd22f898b7f6c7efe5482a2d6699a1f257339a005 (patch)
tree89c227ef50e14071e3d851f3f7c2b84d1cd19d88
parent46c6ead5c3fe87405a644e3167f15b9c6239ee03 (diff)
parent21c6e6063f52398802fd63a81914eb42b76f3ff3 (diff)
Merge
-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();
}
}
}