Explorar el Código

Merge pull request #11785 from donmccurdy/bug-dup-mesh-name

[gltf] Avoid duplicate mesh/parent names.
Mr.doob hace 8 años
padre
commit
487c7895a5
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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;