Browse Source

Clean up.

Mr.doob 2 years ago
parent
commit
be60454c5f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      examples/jsm/exporters/GLTFExporter.js

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

@@ -1299,6 +1299,7 @@ class GLTFWriter {
 		// pbrMetallicRoughness.metallicRoughnessTexture
 		// pbrMetallicRoughness.metallicRoughnessTexture
 		const metalnessMap = material.metalnessMap?.image ? material.metalnessMap : undefined;
 		const metalnessMap = material.metalnessMap?.image ? material.metalnessMap : undefined;
 		const roughnessMap = material.roughnessMap?.image ? material.roughnessMap : undefined;
 		const roughnessMap = material.roughnessMap?.image ? material.roughnessMap : undefined;
+
 		if ( metalnessMap || roughnessMap ) {
 		if ( metalnessMap || roughnessMap ) {
 
 
 			const metalRoughTexture = this.buildMetalRoughTexture( metalnessMap, roughnessMap );
 			const metalRoughTexture = this.buildMetalRoughTexture( metalnessMap, roughnessMap );