Explorar o código

SceneLoader: Fixed mapping handling.

Mr.doob %!s(int64=10) %!d(string=hai) anos
pai
achega
d976b30195
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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 ];
 
 			}