Browse Source

Updated JSM.

Mugen87 5 years ago
parent
commit
df9cb26d48
1 changed files with 3 additions and 0 deletions
  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;