summaryrefslogtreecommitdiff
path: root/indra/newview/llenvironment.h
diff options
context:
space:
mode:
authorRider Linden <rider@lindenlab.com>2019-04-03 14:52:59 -0700
committerRider Linden <rider@lindenlab.com>2019-04-03 14:52:59 -0700
commite24237b6af504ff8faea02c8ab22344f2452364e (patch)
treecda98ca00da4903919fabe14cef3e98fa943089b /indra/newview/llenvironment.h
parent47e3c3aa216f72cae9b940a8f308c7de7c7c695c (diff)
SL-10189, SL-10880: Mark the day instance so that it does not try to reanimate a day cycle when setting a fixed sky. Add new floater for setting the shared environment to local and allowing modifications.
Diffstat (limited to 'indra/newview/llenvironment.h')
-rw-r--r--indra/newview/llenvironment.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/indra/newview/llenvironment.h b/indra/newview/llenvironment.h
index 64350c42e8..327e34d856 100644
--- a/indra/newview/llenvironment.h
+++ b/indra/newview/llenvironment.h
@@ -235,8 +235,12 @@ public:
TYPE_FIXED,
TYPE_CYCLED
};
+
typedef std::shared_ptr<DayInstance> ptr_t;
+ static const U32 NO_ANIMATE_SKY;
+ static const U32 NO_ANIMATE_WATER;
+
DayInstance(EnvSelection_t env);
virtual ~DayInstance() { };
@@ -273,7 +277,12 @@ public:
LLSettingsBase::TrackPosition getProgress() const;
+ void setFlags(U32 flag) { mAnimateFlags |= flag; }
+ void clearFlags(U32 flag) { mAnimateFlags &= ~flag; }
+
protected:
+
+
LLSettingsDay::ptr_t mDayCycle;
LLSettingsSky::ptr_t mSky;
LLSettingsWater::ptr_t mWater;
@@ -291,6 +300,8 @@ public:
EnvSelection_t mEnv;
+ U32 mAnimateFlags;
+
LLSettingsBase::TrackPosition secondsToKeyframe(LLSettingsDay::Seconds seconds);
};