Browse Source

Don't unbind createMaterial in Loader

Sean Griffin 11 years ago
parent
commit
bdcb2510e6
2 changed files with 2 additions and 2 deletions
  1. 1 1
      build/three.js
  2. 1 1
      src/loaders/Loader.js

+ 1 - 1
build/three.js

@@ -11248,7 +11248,7 @@ THREE.Loader.prototype = {
 
 		for ( var i = 0; i < materials.length; ++ i ) {
 
-			array[ i ] = THREE.Loader.prototype.createMaterial( materials[ i ], texturePath );
+			array[ i ] = this.createMaterial( materials[ i ], texturePath );
 
 		}
 

+ 1 - 1
src/loaders/Loader.js

@@ -77,7 +77,7 @@ THREE.Loader.prototype = {
 
 		for ( var i = 0; i < materials.length; ++ i ) {
 
-			array[ i ] = THREE.Loader.prototype.createMaterial( materials[ i ], texturePath );
+			array[ i ] = this.createMaterial( materials[ i ], texturePath );
 
 		}