Explorar el Código

HMDOut: Add null test after loadAnimation()

trethaller hace 6 años
padre
commit
a053203867
Se han modificado 1 ficheros con 2 adiciones y 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();