From 6993f835e702fc41e01fe247427e795974edeb43 Mon Sep 17 00:00:00 2001 From: andreykproductengine Date: Mon, 23 Feb 2015 15:04:32 +0200 Subject: MAINT-4915 FIXED [loader mods] Incorrect error description in case of VERTEX_NUMBER_OVERFLOW --- indra/llprimitive/lldaeloader.cpp | 2 +- indra/llprimitive/llmodelloader.h | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'indra/llprimitive') 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; -- cgit v1.2.3