提交 92e37c6b 编写于 作者: D Don McCurdy

GLTFLoader: Throw unhandled errors.

上级 cac00ce8
......@@ -40,8 +40,11 @@ THREE.GLTFLoader = ( function () {
if ( onError !== undefined ) {
// For SyntaxError or TypeError, return a generic failure message.
onError( e.constructor === Error ? e : new Error( 'THREE.GLTFLoader: Unable to parse model.' ) );
onError( e );
} else {
throw e;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册