Browse Source

Updated JSM.

Mugen87 5 năm trước cách đây
mục cha
commit
df9cb26d48
1 tập tin đã thay đổi với 3 bổ sung0 xóa
  1. 3 0
      examples/jsm/exporters/GLTFExporter.js

+ 3 - 0
examples/jsm/exporters/GLTFExporter.js

@@ -1668,6 +1668,9 @@ GLTFExporter.prototype = {
 			var node = outputJSON.nodes[ nodeMap.get( object ) ];
 
 			var skeleton = object.skeleton;
+
+			if ( skeleton === undefined ) return null;
+
 			var rootJoint = object.skeleton.bones[ 0 ];
 
 			if ( rootJoint === undefined ) return null;