summaryrefslogtreecommitdiff
path: root/indra/newview/llvovolume.cpp
diff options
context:
space:
mode:
authorDave Parks <davep@lindenlab.com>2012-12-10 15:24:22 -0600
committerDave Parks <davep@lindenlab.com>2012-12-10 15:24:22 -0600
commit9f9f8abf2314d79de744fca2d191ac56a2f557a0 (patch)
treee911bcdc1a44a60dd3f85b096036aa20c821cf22 /indra/newview/llvovolume.cpp
parent36a7b0914dc530874798decb3960949573a96012 (diff)
MAINT-1345 Fix for some mesh outfits showing the wrong LoD initially
Diffstat (limited to 'indra/newview/llvovolume.cpp')
-rw-r--r--indra/newview/llvovolume.cpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/indra/newview/llvovolume.cpp b/indra/newview/llvovolume.cpp
index d94cd01a0b..5ca8a88884 100644
--- a/indra/newview/llvovolume.cpp
+++ b/indra/newview/llvovolume.cpp
@@ -4599,7 +4599,14 @@ void LLVolumeGeometryManager::rebuildGeom(LLSpatialGroup* group)
if (is_rigged)
{
- drawablep->setState(LLDrawable::RIGGED);
+ if (!drawablep->isState(LLDrawable::RIGGED))
+ {
+ drawablep->setState(LLDrawable::RIGGED);
+
+ //first time this is drawable is being marked as rigged,
+ // do another LoD update to use avatar bounding box
+ vobj->updateLOD();
+ }
}
else
{