Explorar el Código

ensure animName != null

ncannasse hace 7 años
padre
commit
784f1909ab
Se han modificado 1 ficheros con 3 adiciones y 3 borrados
  1. 3 3
      hxd/fmt/fbx/BaseLibrary.hx

+ 3 - 3
hxd/fmt/fbx/BaseLibrary.hx

@@ -731,9 +731,7 @@ class BaseLibrary {
 		case 0:
 			defNode;
 		case 1:
-			var n = animNodes[0];
-			if( animName == null ) animName = getParent(n,"AnimationStack").getName();
-			n;
+			animNodes[0];
 		default:
 			throw "Multiple animation layers curves are currently not supported";
 		}
@@ -745,6 +743,8 @@ class BaseLibrary {
 				return null;
 		}
 
+		if( animName == null ) animName = getParent(animNode,"AnimationStack").getName();
+
 		var curves = new Map();
 		var P0 = new Point();
 		var P1 = new Point(1, 1, 1);