diff options
Diffstat (limited to 'linden/indra/llcharacter/llmotion.cpp')
-rw-r--r-- | linden/indra/llcharacter/llmotion.cpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/linden/indra/llcharacter/llmotion.cpp b/linden/indra/llcharacter/llmotion.cpp index b13ea60..40a30a4 100644 --- a/linden/indra/llcharacter/llmotion.cpp +++ b/linden/indra/llcharacter/llmotion.cpp | |||
@@ -126,6 +126,11 @@ void LLMotion::setDeactivateCallback( void (*cb)(void *), void* userdata ) | |||
126 | mDeactivateCallbackUserData = userdata; | 126 | mDeactivateCallbackUserData = userdata; |
127 | } | 127 | } |
128 | 128 | ||
129 | BOOL LLMotion::isBlending() | ||
130 | { | ||
131 | return mPose.getWeight() < 1.f; | ||
132 | } | ||
133 | |||
129 | //----------------------------------------------------------------------------- | 134 | //----------------------------------------------------------------------------- |
130 | // activate() | 135 | // activate() |
131 | //----------------------------------------------------------------------------- | 136 | //----------------------------------------------------------------------------- |
@@ -142,10 +147,16 @@ void LLMotion::activate() | |||
142 | void LLMotion::deactivate() | 147 | void LLMotion::deactivate() |
143 | { | 148 | { |
144 | mActive = FALSE; | 149 | mActive = FALSE; |
150 | mPose.setWeight(0.f); | ||
145 | 151 | ||
146 | if (mDeactivateCallback) (*mDeactivateCallback)(mDeactivateCallbackUserData); | 152 | if (mDeactivateCallback) (*mDeactivateCallback)(mDeactivateCallbackUserData); |
147 | 153 | ||
148 | onDeactivate(); | 154 | onDeactivate(); |
149 | } | 155 | } |
150 | 156 | ||
157 | BOOL LLMotion::canDeprecate() | ||
158 | { | ||
159 | return TRUE; | ||
160 | } | ||
161 | |||
151 | // End | 162 | // End |