Bengt Ove Sannes 6 anos atrás
pai
commit
7efacc85bc

+ 2 - 0
examples/js/exporters/GLTFExporter.js

@@ -868,7 +868,9 @@ THREE.GLTFExporter.prototype = {
 			};
 
 			if ( map.name ) {
+
 				gltfTexture.name = map.name;
+
 			}
 
 			outputJSON.textures.push( gltfTexture );

+ 2 - 0
examples/jsm/exporters/GLTFExporter.js

@@ -892,7 +892,9 @@ GLTFExporter.prototype = {
 			};
 
 			if ( map.name ) {
+
 				gltfTexture.name = map.name;
+
 			}
 
 			outputJSON.textures.push( gltfTexture );