瀏覽代碼

HMDOut: Add null test after loadAnimation()

trethaller 6 年之前
父節點
當前提交
a053203867
共有 1 個文件被更改,包括 2 次插入1 次删除
  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();