提交 e50e3ed2 编写于 作者: M Mr.doob

Fixed SceneLoader not loading Textures properly. Fixes #4908.

上级 7ca42108
...@@ -985,14 +985,20 @@ THREE.SceneLoader.prototype = { ...@@ -985,14 +985,20 @@ THREE.SceneLoader.prototype = {
texture = new THREE.Texture(); texture = new THREE.Texture();
loader = new THREE.ImageLoader(); loader = new THREE.ImageLoader();
loader.load( fullUrl, function ( image ) {
( function ( texture ) {
texture.image = image; loader.load( fullUrl, function ( image ) {
texture.needsUpdate = true;
textureCallback(); texture.image = image;
texture.needsUpdate = true;
} ); textureCallback();
} );
} )( texture )
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册