Browse Source

SceneLoader: Fixed mapping handling.

Mr.doob 10 years ago
parent
commit
d976b30195
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/js/loaders/SceneLoader.js

+ 1 - 1
examples/js/loaders/SceneLoader.js

@@ -946,7 +946,7 @@ THREE.SceneLoader.prototype = {
 
 			if ( textureJSON.mapping !== undefined && THREE[ textureJSON.mapping ] !== undefined ) {
 
-				textureJSON.mapping = new THREE[ textureJSON.mapping ]();
+				textureJSON.mapping = THREE[ textureJSON.mapping ];
 
 			}