summaryrefslogtreecommitdiff
path: root/indra/llprimitive/lldaeloader.cpp
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2015-08-18 18:51:38 +0300
committerandreykproductengine <akleshchev@productengine.com>2015-08-18 18:51:38 +0300
commitb3916451c178fe62775b9ba9e5a66da21f5ac2b8 (patch)
tree63b838b31f0e2f5a9d8f7ad6e70eee4174288a34 /indra/llprimitive/lldaeloader.cpp
parentfe89d4c5c2f5779d43d41760600e14925e517b3d (diff)
parent1be63209331d509396bd7ee79302d511fe83d72e (diff)
Merge viewer-release and become version 3.8.4
Diffstat (limited to 'indra/llprimitive/lldaeloader.cpp')
-rw-r--r--indra/llprimitive/lldaeloader.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/indra/llprimitive/lldaeloader.cpp b/indra/llprimitive/lldaeloader.cpp
index 1cb80a5769..24aed7b01b 100644
--- a/indra/llprimitive/lldaeloader.cpp
+++ b/indra/llprimitive/lldaeloader.cpp
@@ -169,7 +169,12 @@ LLModel::EModelStatus load_face_from_dom_triangles(std::vector<LLVolumeFace>& fa
return LLModel::BAD_ELEMENT;
}
-
+ if (!pos_source)
+ {
+ LL_WARNS() << "Unable to process mesh without position data; invalid model; invalid model." << LL_ENDL;
+ return LLModel::BAD_ELEMENT;
+ }
+
domPRef p = tri->getP();
domListOfUInts& idx = p->getValue();