From b26f7f5a6bfadde1f556f4b3aec62176ed514b83 Mon Sep 17 00:00:00 2001 From: "Matthew Breindel (Falcon)" Date: Thu, 30 Sep 2010 13:35:43 -0700 Subject: Added fix for viewing convex decomps in Render Physics Shapes mode when hull has exactly 256 verts. --- indra/newview/llmeshrepository.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'indra/newview/llmeshrepository.cpp') diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp index 17b101e410..757497060a 100644 --- a/indra/newview/llmeshrepository.cpp +++ b/indra/newview/llmeshrepository.cpp @@ -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) { -- cgit v1.2.3