Quellcode durchsuchen

Protect MultiMaterial against the closure circular reference bug

Tristan VALCKE vor 9 Jahren
Ursprung
Commit
279d73f339
1 geänderte Dateien mit 2 neuen und 2 gelöschten Zeilen
  1. 2 2
      src/materials/MultiMaterial.js

+ 2 - 2
src/materials/MultiMaterial.js

@@ -16,7 +16,7 @@ function MultiMaterial( materials ) {
 
 
 }
 }
 
 
-MultiMaterial.prototype = {
+Object.assign( MultiMaterial.prototype, {
 
 
 	constructor: MultiMaterial,
 	constructor: MultiMaterial,
 
 
@@ -68,7 +68,7 @@ MultiMaterial.prototype = {
 
 
 	}
 	}
 
 
-};
+} );
 
 
 
 
 export { MultiMaterial };
 export { MultiMaterial };

粤ICP备19079148号