Browse Source

HMDOut: Add null test after loadAnimation()

trethaller 6 years ago
parent
commit
a053203867
1 changed files with 2 additions and 1 deletions
  1. 2 1
      hxd/fmt/fbx/HMDOut.hx

+ 2 - 1
hxd/fmt/fbx/HMDOut.hx

@@ -808,7 +808,8 @@ class HMDOut extends BaseLibrary {
 		var names = getAnimationNames();
 		var names = getAnimationNames();
 		for ( animName in names ) {
 		for ( animName in names ) {
 			var anim = loadAnimation(animName);
 			var anim = loadAnimation(animName);
-			d.animations.push(makeAnimation(anim));
+			if(anim != null)
+				d.animations.push(makeAnimation(anim));
 		}
 		}
 
 
 		d.data = dataOut.getBytes();
 		d.data = dataOut.getBytes();