Browse Source

GLTFLoader: Use original name for first mesh primitive.

Don McCurdy 7 years ago
parent
commit
7ee79896d9
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/GLTFLoader.js

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

@@ -1896,7 +1896,7 @@ THREE.GLTFLoader = ( function () {
 
 						}
 
-						mesh.name = group.name + '_' + i;
+						mesh.name = group.name + ( i > 0 ? ( '_' + i ) : '' );
 
 						if ( primitive.targets !== undefined ) {