diff options
| author | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-04-26 20:55:59 +0100 | 
|---|---|---|
| committer | Brad Payne (Vir Linden) <vir@lindenlab.com> | 2018-04-26 20:55:59 +0100 | 
| commit | 96c1790d92b7c1c019b164e0e51338b83c33e873 (patch) | |
| tree | d036a921a5bb99240f7eefc3dfac4328ae875195 /indra | |
| parent | cc3b84d876f485acca515309fcddfd71ba73fc1f (diff) | |
MAINT-8559 - create control avatar only when linkset contains a rigged mesh
Diffstat (limited to 'indra')
| -rw-r--r-- | indra/newview/llviewerobject.cpp | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/indra/newview/llviewerobject.cpp b/indra/newview/llviewerobject.cpp index 32a1ccd852..5908d160e2 100644 --- a/indra/newview/llviewerobject.cpp +++ b/indra/newview/llviewerobject.cpp @@ -2971,15 +2971,15 @@ void LLViewerObject::updateControlAvatar()      LLViewerObject *root = getRootEdit();      if (root->isAnimatedObject() && !root->getControlAvatar())      { -        bool any_mesh = root->isMesh(); +        bool any_rigged_mesh = root->isRiggedMesh();          LLViewerObject::const_child_list_t& child_list = root->getChildren();          for (LLViewerObject::const_child_list_t::const_iterator iter = child_list.begin();               iter != child_list.end(); ++iter)          {              const LLViewerObject* child = *iter; -            any_mesh = any_mesh || child->isMesh(); +            any_rigged_mesh = any_rigged_mesh || child->isRiggedMesh();          } -        if (any_mesh) +        if (any_rigged_mesh)          {              std::string vobj_name = llformat("Vol%p", root);              LL_DEBUGS("AnimatedObjects") << vobj_name << " calling linkControlAvatar()" << LL_ENDL; | 
