Commit 1f74d979 authored by Haocheng LIU's avatar Haocheng LIU Committed by Kitware Robot

Merge topic 'Fix2dmRandomMeshName'

0c860003 Fix mesh name changing everytime we change visibility
Acked-by: Kitware Robot's avatarKitware Robot <kwrobot@kitware.com>
Acked-by: default avatarYumin Yuan <yumin.yuan@kitware.com>
Merge-request: !351
parents b9e1ea57 0c860003
......@@ -1227,10 +1227,12 @@ int ImportJSON::ofMeshesOfModel(cJSON* node,
cJSON_GetStringValue(collecNameNode, collectionName);
collection->name(collectionName);
//ask the manager to generate a unique name for the collection, if it
//doesn't already have a unique name. This occurs when meshes have
//no name, or a name that has already been used
collection->assignUniqueNameIfNotAlready();
//ask the manager to generate a unique name for the collection, this
//occurs when meshes have no name.
if (collection->name().empty())
{
collection->assignUniqueNameIfNotAlready();
}
//set the collections model manager so that we can do model based
//queries properly
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment