summaryrefslogtreecommitdiff
path: root/indra
diff options
context:
space:
mode:
authorandreykproductengine <akleshchev@productengine.com>2016-05-12 17:46:20 +0300
committerandreykproductengine <akleshchev@productengine.com>2016-05-12 17:46:20 +0300
commit5048402da82417f653060ef04cfc36bb67f8cd2f (patch)
tree9bf5e1b0bb79e3f50fff4d7ebc0fdbbbd4196132 /indra
parent54bbf95f26c7412a0febb9279981c820d2a45c3d (diff)
MAINT-5786 FIXED Redundant sibling index suffix on uploaded mesh object names.
Diffstat (limited to 'indra')
-rw-r--r--indra/llprimitive/lldaeloader.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/indra/llprimitive/lldaeloader.cpp b/indra/llprimitive/lldaeloader.cpp
index 720986a411..00bde8dbc3 100644
--- a/indra/llprimitive/lldaeloader.cpp
+++ b/indra/llprimitive/lldaeloader.cpp
@@ -2235,7 +2235,11 @@ std::string LLDAELoader::getElementLabel(daeElement *element)
// retrieve index to distinguish items inside same parent
size_t ind = 0;
parent->getChildren().find(element, ind);
- index_string = "_" + boost::lexical_cast<std::string>(ind);
+
+ if (ind > 0)
+ {
+ index_string = "_" + boost::lexical_cast<std::string>(ind);
+ }
// if parent has a name or ID, use it
std::string name = parent->getAttribute("name");