diff options
author | callum <none@none> | 2009-10-29 17:35:38 -0700 |
---|---|---|
committer | callum <none@none> | 2009-10-29 17:35:38 -0700 |
commit | 65b74c6a5e0da64e3c30abf18e875fa4191891d0 (patch) | |
tree | 01ffd01779af951f298753d5ec7ea08f3272d9d7 /indra/llcharacter/llvisualparam.h | |
parent | b4bd34bd73b2be74afd08785c88b66b2fadd5bfc (diff) | |
parent | 07647fdc5e02f893905d40af00e9ad4ffbc4ae5a (diff) |
Merge
Diffstat (limited to 'indra/llcharacter/llvisualparam.h')
-rw-r--r-- | indra/llcharacter/llvisualparam.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llcharacter/llvisualparam.h b/indra/llcharacter/llvisualparam.h index 0b516b9374..affc49debf 100644 --- a/indra/llcharacter/llvisualparam.h +++ b/indra/llcharacter/llvisualparam.h @@ -148,15 +148,19 @@ public: LLVisualParam* getNextParam() { return mNext; } void setNextParam( LLVisualParam *next ); - virtual void setAnimating(BOOL is_animating) { mIsAnimating = is_animating; } + virtual void setAnimating(BOOL is_animating) { mIsAnimating = is_animating && !mIsDummy; } BOOL getAnimating() const { return mIsAnimating; } + void setIsDummy(BOOL is_self) { mIsDummy = is_self; } + protected: F32 mCurWeight; // current weight F32 mLastWeight; // last weight LLVisualParam* mNext; // next param in a shared chain F32 mTargetWeight; // interpolation target BOOL mIsAnimating; // this value has been given an interpolation target + BOOL mIsDummy; // this is used to prevent dummy visual params from animating + S32 mID; // id for storing weight/morphtarget compares compactly LLVisualParamInfo *mInfo; |