summaryrefslogtreecommitdiff
path: root/indra/llinventory
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2018-05-17 16:16:33 -0700
committerRider Linden <rider@lindenlab.com>2018-05-17 16:16:33 -0700
commit430c5cd23558ba42c7da0e31845a3677e66f1fed (patch)
tree70af45f8e29a485a08ee8e7848366755957b7cc2 /indra/llinventory
parentb117a9ea197a084eeec1e8330dbe7c562423e248 (diff)
Self contained looping track blender. Will blend over time across an entire track in a day cycle.
Diffstat (limited to 'indra/llinventory')
-rw-r--r--indra/llinventory/llsettingsbase.h6
-rw-r--r--indra/llinventory/llsettingsdaycycle.h2
2 files changed, 4 insertions, 4 deletions
diff --git a/indra/llinventory/llsettingsbase.h b/indra/llinventory/llsettingsbase.h
index d304638d20..6ab3032a3d 100644
--- a/indra/llinventory/llsettingsbase.h
+++ b/indra/llinventory/llsettingsbase.h
@@ -271,7 +271,8 @@ public:
mInitial(initsetting),
mFinal(endsetting)
{
- mTarget->replaceSettings(mInitial->getSettings());
+ if (mInitial)
+ mTarget->replaceSettings(mInitial->getSettings());
}
virtual ~LLSettingsBlender() {}
@@ -309,7 +310,6 @@ public:
protected:
void triggerComplete();
-private:
finish_signal_t mOnFinished;
LLSettingsBase::ptr_t mTarget;
@@ -347,7 +347,7 @@ public:
virtual void update(F64 timedelta) override;
-private:
+protected:
F64Seconds mBlendSpan;
F64Seconds mLastUpdate;
F64Seconds mTimeSpent;
diff --git a/indra/llinventory/llsettingsdaycycle.h b/indra/llinventory/llsettingsdaycycle.h
index a869d4970c..15a5b29f9f 100644
--- a/indra/llinventory/llsettingsdaycycle.h
+++ b/indra/llinventory/llsettingsdaycycle.h
@@ -60,7 +60,7 @@ public:
typedef std::map<F32, LLSettingsBase::ptr_t> CycleTrack_t;
typedef std::vector<CycleTrack_t> CycleList_t;
- typedef std::shared_ptr<LLSettingsDay> ptr_t;
+ typedef std::shared_ptr<LLSettingsDay> ptr_t;
typedef std::vector<F32> KeyframeList_t;
typedef std::pair<CycleTrack_t::iterator, CycleTrack_t::iterator> TrackBound_t;