diff options
author | Runitai Linden <davep@lindenlab.com> | 2021-12-15 13:44:22 -0600 |
---|---|---|
committer | Runitai Linden <davep@lindenlab.com> | 2021-12-15 13:44:22 -0600 |
commit | 199775b7ac214cfc3492c343c3f6046effcde7ed (patch) | |
tree | c3b3bc7651399a799fc6df3db5aea94819446b93 /indra/newview/llvovolume.cpp | |
parent | 8bf5597db2f10c4a423af5df333ff0f1c7fd9c99 (diff) | |
parent | 915376b37988f93704553aeda103d525420997ea (diff) |
Merge branch 'DRTVWR-546' of ssh://bitbucket.org/lindenlab/viewer into DRTVWR-546
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r-- | indra/newview/llvovolume.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp index a4f217bbcb..d20bf3e871 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -5669,6 +5669,19 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group) facep->mAvatar = avatar; any_rigged_face = true; } + else + { + if (facep->isState(LLFace::RIGGED)) + { + //face is not rigged but used to be, remove from rigged face pool + LLDrawPoolAvatar* pool = (LLDrawPoolAvatar*) facep->getPool(); + if (pool) + { + pool->removeFace(facep); + } + facep->clearState(LLFace::RIGGED); + } + } if (cur_total > max_total || facep->getIndicesCount() <= 0 || facep->getGeomCount() <= 0) { |