Browse Source

do not parse the same single material twice

Michael Turkeev 6 years ago
parent
commit
61503c4e0f
1 changed files with 1 additions and 1 deletions
  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 ];
 
 				}