Browse Source

[gltf] Avoid duplicate mesh/parent names.

Don McCurdy 8 years ago
parent
commit
fd3dcd7037
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/GLTF2Loader.js

+ 1 - 1
examples/js/loaders/GLTF2Loader.js

@@ -2345,7 +2345,7 @@ THREE.GLTF2Loader = ( function () {
 
 
 					}
 					}
 
 
-					meshNode.name = ( name === "0" ? group.name : group.name + name );
+					meshNode.name = group.name + '_' + name;
 
 
 					if ( primitive.extras ) meshNode.userData = primitive.extras;
 					if ( primitive.extras ) meshNode.userData = primitive.extras;