Selaa lähdekoodia

SceneLoader: Fixed mapping handling.

Mr.doob 11 vuotta sitten
vanhempi
sitoutus
d976b30195
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  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 ];
 
 			}
 

粤ICP备19079148号