diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-06 17:05:31 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-06 17:05:31 -0500 |
commit | 5f2f532aaa7af094a1dd6e5ebcd9f51ac1941047 (patch) | |
tree | 3d4308ffc5e61eb52dfb0b77306ffb8ef62c00a3 | |
parent | 325c2b216907b84b02b425103b011a556222b474 (diff) | |
parent | 9793f6c51d3eb4fd9752e2c74b283d748bbe0bd2 (diff) |
merge
-rw-r--r-- | indra/llprimitive/llmodel.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp index 5acf93cfc4..337fa59f76 100644 --- a/indra/llprimitive/llmodel.cpp +++ b/indra/llprimitive/llmodel.cpp @@ -1419,8 +1419,9 @@ LLSD LLModel::writeModel( for (S32 i = 0; i < model[idx]->getNumVolumeFaces(); ++i) { //for each face const LLVolumeFace& face = model[idx]->getVolumeFace(i); - if (!face.mNumVertices) + if (face.mNumVertices < 3) { //don't export an empty face + mdl[model_names[idx]][i]["NoGeometry"] = true; continue; } LLSD::Binary verts(face.mNumVertices*3*2); |