Explorar el Código

do not parse the same single material twice

Michael Turkeev hace 7 años
padre
commit
61503c4e0f
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      src/loaders/ObjectLoader.js

+ 1 - 1
src/loaders/ObjectLoader.js

@@ -491,7 +491,7 @@ Object.assign( ObjectLoader.prototype, {
 				} else {
 
 					materials[ data.uuid ] = loader.parse( data );
-					cache[ data.uuid ] = loader.parse( data );
+					cache[ data.uuid ] = materials[ data.uuid ];
 
 				}
 

粤ICP备19079148号