提交 0902d9a1 编写于 作者: K Kyle Larson

Quick Fixes to FBXLoader

- Removed deprecated FileLoader and replaced with XHRLoader
- Loader now does not break on unrigged models.
上级 a0531078
...@@ -36,7 +36,7 @@ ...@@ -36,7 +36,7 @@
var scope = this; var scope = this;
var loader = new THREE.FileLoader( scope.manager ); var loader = new THREE.XHRLoader( scope.manager );
// loader.setCrossOrigin( this.crossOrigin ); // loader.setCrossOrigin( this.crossOrigin );
loader.load( url, function ( text ) { loader.load( url, function ( text ) {
...@@ -368,7 +368,7 @@ ...@@ -368,7 +368,7 @@
} }
if ( geometry.bones !== undefined && geometry.skinWeights !== undefined ) { if ( geometry.bones !== undefined && geometry.skinWeights !== undefined && geometry.skinWeights.length > 0 ) {
if ( material instanceof THREE.MultiMaterial ) { if ( material instanceof THREE.MultiMaterial ) {
...@@ -597,7 +597,7 @@ ...@@ -597,7 +597,7 @@
loadFile: function ( url, onLoad, onProgress, onError, responseType ) { loadFile: function ( url, onLoad, onProgress, onError, responseType ) {
var loader = new THREE.FileLoader( this.manager ); var loader = new THREE.XHRLoader( this.manager );
loader.setResponseType( responseType ); loader.setResponseType( responseType );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册