summaryrefslogtreecommitdiff
path: root/indra/llprimitive/llmodel.cpp
diff options
context:
space:
mode:
authorJonathan Wolk <none@none>2010-10-26 11:20:48 -0700
committerJonathan Wolk <none@none>2010-10-26 11:20:48 -0700
commit57cbcdc9ec9e8edf50bfea82efb63b3f8fab3cdc (patch)
tree7336e906c58c16695678688ab2c1b4ab1ba9e7b7 /indra/llprimitive/llmodel.cpp
parent0a8d43e84455b48e220a4f6574e42d258b9312d4 (diff)
Adding back in fix for convex hull size incompatibility after backout of previous checkin.
Diffstat (limited to 'indra/llprimitive/llmodel.cpp')
-rw-r--r--indra/llprimitive/llmodel.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp
index 7fa72d82e1..1cee5a6e15 100644
--- a/indra/llprimitive/llmodel.cpp
+++ b/indra/llprimitive/llmodel.cpp
@@ -1449,9 +1449,7 @@ LLSD LLModel::writeModel(
{
U32 size = decomp[i].size();
total += size;
- // The valid range of sizes is actually 3-256 verts. We need this to fit into a U8,
- // So we just subtract 1
- hulls[i] = (U8) (size - 1);
+ hulls[i] = (U8) (size);
for (U32 j = 0; j < decomp[i].size(); ++j)
{