提交 3ac3bf45 编写于 作者: M Mr.doob 提交者: GitHub

FBXLoader: Fixed itemError/throw order.

上级 a57c9644
......@@ -100,16 +100,16 @@
if ( ! isFbxFormatASCII( FBXText ) ) {
throw new Error( 'FBXLoader: Unknown format.' );
self.manager.itemError( url );
throw new Error( 'FBXLoader: Unknown format.' );
return;
}
if ( getFbxVersion( FBXText ) < 7000 ) {
throw new Error( 'FBXLoader: FBX version not supported for file at ' + url + ', FileVersion: ' + getFbxVersion( FBXText ) );
self.manager.itemError( url );
throw new Error( 'FBXLoader: FBX version not supported for file at ' + url + ', FileVersion: ' + getFbxVersion( FBXText ) );
return;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册