summaryrefslogtreecommitdiff
path: root/indra/newview/llwldaycycle.h
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-06-07 17:41:26 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-06-07 17:41:26 +0300
commit7151a4e6b02f02155387fc595034a42aebd7ec9c (patch)
tree4e8727d56b795edc20d43a70f295ec47b3c937f5 /indra/newview/llwldaycycle.h
parent497c0983bb013cb65b6faf10045ea7b62511cc55 (diff)
STORM-1255 WIP Consistency pass on sky presets removal.
* Update all related floaters when a sky preset gets removed. * Don't allow removing skies referenced by (local) day cycles. * Other minor fixes.
Diffstat (limited to 'indra/newview/llwldaycycle.h')
-rw-r--r--indra/newview/llwldaycycle.h5
1 files changed, 4 insertions, 1 deletions
diff --git a/indra/newview/llwldaycycle.h b/indra/newview/llwldaycycle.h
index 9dbfad294a..c8585564ed 100644
--- a/indra/newview/llwldaycycle.h
+++ b/indra/newview/llwldaycycle.h
@@ -106,7 +106,7 @@ public:
/// get the first key time for a parameter
/// returns false if not there
- bool getKeytime(LLWLParamKey keyFrame, F32& keyTime);
+ bool getKeytime(LLWLParamKey keyFrame, F32& keyTime) const;
/// get the param set at a given time
/// returns true if found one
@@ -116,6 +116,9 @@ public:
/// returns true if it found one
bool getKeyedParamName(F32 time, std::string & name);
+ /// @return true if there are references to the given sky
+ bool hasReferencesTo(const LLWLParamKey& keyframe) const;
+
/// removes all references to the sky (paramkey)
/// does nothing if the sky doesn't exist in the day
void removeReferencesTo(const LLWLParamKey& keyframe);