diff options
author | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-12-15 16:20:28 +0200 |
---|---|---|
committer | Mnikolenko Productengine <mnikolenko@productengine.com> | 2021-12-15 16:20:28 +0200 |
commit | 915376b37988f93704553aeda103d525420997ea (patch) | |
tree | a5eacd6ecaa95e7e553a7648eed5f078ca5a18c9 /indra/newview/llvovolume.cpp | |
parent | 2d0d7c71e6f807a459d5e69899139772841d22ae (diff) |
SL-16495 FIXED Crash when unchecking "Animated Mesh" setting
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 c312ebb307..e7d4ae49f0 100644 --- a/indra/newview/llvovolume.cpp +++ b/indra/newview/llvovolume.cpp @@ -5656,6 +5656,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) { |