Browse Source

HMDOut: Add null test after loadAnimation()

trethaller 6 năm trước cách đây
mục cha
commit
a053203867
1 tập tin đã thay đổi với 2 bổ sung1 xóa
  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();
 		for ( animName in names ) {
 			var anim = loadAnimation(animName);
-			d.animations.push(makeAnimation(anim));
+			if(anim != null)
+				d.animations.push(makeAnimation(anim));
 		}
 
 		d.data = dataOut.getBytes();