Explorar o código

HMDOut: Add null test after loadAnimation()

trethaller %!s(int64=6) %!d(string=hai) anos
pai
achega
a053203867
Modificáronse 1 ficheiros con 2 adicións e 1 borrados
  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();