Browse Source

SceneLoader: Fixed mapping handling.

Mr.doob 11 năm trước cách đây
mục cha
commit
d976b30195

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

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

粤ICP备19079148号