Defer bbox generation for rigged meshes until actually loaded. Fix math bug.

This commit is contained in:
Shyotl
2019-03-21 17:22:33 -05:00
parent fd53ff014e
commit d61f89e3c9
3 changed files with 29 additions and 37 deletions

View File

@@ -1943,6 +1943,10 @@ void renderBoundingBox(LLDrawable* drawable, BOOL set_color = TRUE)
gGL.diffuseColor4f(0,1,0.5,1);
}
}
else if (drawable->getVObj()->asAvatar())
{
gGL.diffuseColor4f(.5, 0, 1, 1);
}
else
{
gGL.diffuseColor4f(1,0,1,1); // magenta