Explorar o código

Merge pull request #14347 from marcatec/gltfexport-cached-normals

Get normal from cachedData in GLTFExporter
Mr.doob %!s(int64=7) %!d(string=hai) anos
pai
achega
d4d5cd5cf1
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      examples/js/exporters/GLTFExporter.js

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

@@ -244,7 +244,7 @@ THREE.GLTFExporter.prototype = {
 
 
 			if ( cachedData.attributes.has( normal ) ) {
 			if ( cachedData.attributes.has( normal ) ) {
 
 
-				return cachedData.textures.get( normal );
+				return cachedData.attributes.get( normal );
 
 
 			}
 			}