提交 affb727f 编写于 作者: T Takahiro

GLTFExporter: Return an empty object if fails to serialize userData

上级 735787d9
......@@ -342,6 +342,8 @@ THREE.GLTFExporter.prototype = {
console.warn( 'THREE.GLTFExporter: userData of \'' + object.name + '\' ' +
'won\'t be serialized because of JSON.stringify error - ' + error.message );
return {};
}
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册