Преглед на файлове

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();