diff options
author | Dave Parks <davep@lindenlab.com> | 2011-06-06 16:54:15 -0500 |
---|---|---|
committer | Dave Parks <davep@lindenlab.com> | 2011-06-06 16:54:15 -0500 |
commit | 9793f6c51d3eb4fd9752e2c74b283d748bbe0bd2 (patch) | |
tree | 1b7b848d17df3aecfe2cd87f8dca54ab061b1e7b /indra | |
parent | c32b0122ab915ce9bd0cfd8ec330495f2832d97d (diff) |
Add "NoGeometry" identifier support to viewer.
Diffstat (limited to 'indra')
-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); |