summaryrefslogtreecommitdiff
path: root/indra/llprimitive
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2015-02-23 15:04:32 +0200
committerandreykproductengine <akleshchev@productengine.com>2015-02-23 15:04:32 +0200
commit6993f835e702fc41e01fe247427e795974edeb43 (patch)
tree2218bb23ec64838a98da53eb194b2fc3f4f9a062 /indra/llprimitive
parentb25dfc8cfd41c85c6752f6c63dded1e86ed10801 (diff)
MAINT-4915 FIXED [loader mods] Incorrect error description in case of VERTEX_NUMBER_OVERFLOW
Diffstat (limited to 'indra/llprimitive')
-rw-r--r--indra/llprimitive/lldaeloader.cpp2
-rw-r--r--indra/llprimitive/llmodelloader.h3
2 files changed, 3 insertions, 2 deletions
diff --git a/indra/llprimitive/lldaeloader.cpp b/indra/llprimitive/lldaeloader.cpp
index 242a669678..50bf03b32f 100644
--- a/indra/llprimitive/lldaeloader.cpp
+++ b/indra/llprimitive/lldaeloader.cpp
@@ -928,7 +928,7 @@ bool LLDAELoader::OpenFile(const std::string& filename)
LLModel* mdl = *i;
if(mdl->getStatus() != LLModel::NO_ERRORS)
{
- setLoadState(ERROR_PARSING + mdl->getStatus()) ;
+ setLoadState(ERROR_MODEL + mdl->getStatus()) ;
return false; //abort
}
diff --git a/indra/llprimitive/llmodelloader.h b/indra/llprimitive/llmodelloader.h
index 90ffc0a83a..bb4d06dca3 100644
--- a/indra/llprimitive/llmodelloader.h
+++ b/indra/llprimitive/llmodelloader.h
@@ -89,7 +89,8 @@ public:
ERROR_LOADER_SETUP,
ERROR_INVALID_PARAMETERS,
ERROR_OUT_OF_RANGE,
- ERROR_FILE_VERSION_INVALID
+ ERROR_FILE_VERSION_INVALID,
+ ERROR_MODEL // this error should always be last in this list, error code is passed as ERROR_MODEL+error_code
} eLoadState;
U32 mState;