Browse Source

SceneLoader: Fixed mapping handling.

Mr.doob 10 năm trước cách đây
mục cha
commit
d976b30195
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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 ];
 
 			}