Browse Source

Protect MultiMaterial against the closure circular reference bug

Tristan VALCKE 8 years ago
parent
commit
279d73f339
1 changed files with 2 additions and 2 deletions
  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 };