提交 d709d158 编写于 作者: T tiptopanonymous

Add null check for skeleton while processing skinned mesh for export

上级 c466bb33
......@@ -1648,7 +1648,7 @@ THREE.GLTFExporter.prototype = {
var skeleton = object.skeleton;
var rootJoint = object.skeleton.bones[ 0 ];
if ( rootJoint === undefined ) return null;
if ( skeleton === undefined || rootJoint === undefined ) return null;
var joints = [];
var inverseBindMatrices = new Float32Array( skeleton.bones.length * 16 );
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册