diff options
author | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-06-06 11:44:58 +0300 |
---|---|---|
committer | Mnikolenko ProductEngine <mnikolenko@productengine.com> | 2014-06-06 11:44:58 +0300 |
commit | c464a119585d20855cf3095781b38ac6f8b2118b (patch) | |
tree | 29e6d5fcda3b8adbadffb61e92f421150aad25d8 /indra/llprimitive | |
parent | 75b68cf3f4286a8ba8e54bd119c5d26008e44de8 (diff) |
MAINT-4123 FIXED return LLModel::BAD_ELEMENT for mesh with empty tex coords array
Diffstat (limited to 'indra/llprimitive')
-rwxr-xr-x | indra/llprimitive/llmodel.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/indra/llprimitive/llmodel.cpp b/indra/llprimitive/llmodel.cpp index b0456e3ccf..df098e612f 100755 --- a/indra/llprimitive/llmodel.cpp +++ b/indra/llprimitive/llmodel.cpp @@ -191,7 +191,7 @@ LLModel::EModelStatus load_face_from_dom_triangles(std::vector<LLVolumeFace>& fa U32 tc_count = tc_source ? tc.getCount() : 0; U32 norm_count = norm_source ? n.getCount() : 0; - if (vertex_count == 0) + if ((vertex_count == 0) || (tc_count == 0)) { llwarns << "Unable to process mesh with empty position array; invalid model." << llendl; return LLModel::BAD_ELEMENT; |