Parcourir la source

do not parse the same single material twice

Michael Turkeev il y a 7 ans
Parent
commit
61503c4e0f
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  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号