Added fix for viewing convex decomps in Render Physics Shapes mode when hull has exactly 256 verts.

meow-7.2.2
Matthew Breindel (Falcon) 2010-09-30 13:35:43 -07:00
parent 60f8c82790
commit b26f7f5a6b
1 changed files with 1 additions and 1 deletions

View File

@ -1087,7 +1087,7 @@ bool LLMeshRepoThread::decompositionReceived(const LLUUID& mesh_id, U8* data, S3
for (U32 i = 0; i < hulls.size(); ++i)
{
U8 count = hulls[i];
U16 count = (hulls[i] == 0) ? 256 : hulls[i];
for (U32 j = 0; j < count; ++j)
{