Experimental SHOverrideRiggedBounds setting to generate more accurate avatar bboxes. Defaults to off, for now.

This commit is contained in:
Shyotl
2019-03-26 14:59:44 -05:00
parent 7b5d7376c6
commit a90cdd9c7e
2 changed files with 16 additions and 3 deletions

View File

@@ -1963,7 +1963,9 @@ void renderBoundingBox(LLDrawable* drawable, BOOL set_color = TRUE)
const LLVector4a* ext;
LLVector4a pos, size;
if (drawable->getVOVolume())
static LLCachedControl<bool> sh_override_rigged_bounds("SHOverrideRiggedBounds", false);
LLVOVolume* volume = drawable->getVOVolume();
if (volume && (!sh_override_rigged_bounds || !volume->isAttachment() || !(drawable->isState(LLDrawable::RIGGED) || volume->isRiggedMesh())))
{
//render face bounding boxes
for (S32 i = 0; i < drawable->getNumFaces(); i++)