diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-06-16 16:03:06 +0100 |
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2017-06-16 16:03:06 +0100 |
| commit | b2a06578187af5446b5e24379abc8764f0cd731f (patch) | |
| tree | 7392a0b4ff299c49145adcfd0cf61f51ae3a9445 /indra/newview/llviewermessage.cpp | |
| parent | c5dc0ee36e8d17fd0cf25f5a1fbdfb8609a64ee0 (diff) | |
SL-697 - global scale function for LLControlAvatar, to support arbitrary scaling of animated objects. Not currently used.
Diffstat (limited to 'indra/newview/llviewermessage.cpp')
| -rw-r--r-- | indra/newview/llviewermessage.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/indra/newview/llviewermessage.cpp b/indra/newview/llviewermessage.cpp index db237d30ea..f359c1455f 100644 --- a/indra/newview/llviewermessage.cpp +++ b/indra/newview/llviewermessage.cpp @@ -5097,10 +5097,16 @@ void process_object_animation(LLMessageSystem *mesgsys, void **user_data) return; } + LLControlAvatar *avatarp = volp->mControlAvatar; + if (!avatarp) + { + LL_WARNS() << "AXON no control avatar, ignoring" << LL_ENDL; + return; + } + S32 num_blocks = mesgsys->getNumberOfBlocksFast(_PREHASH_AnimationList); LL_WARNS() << "AXON handle object animation here, num_blocks " << num_blocks << LL_ENDL; - LLControlAvatar *avatarp = volp->mControlAvatar; if (!avatarp->mPlaying) { avatarp->mPlaying = true; |
