2
0
Эх сурвалжийг харах

Update Library.hx

small fbx fix to allow cross compatibility
David "Blackmagic" Elahee 11 жил өмнө
parent
commit
88d769102b
1 өөрчлөгдсөн 4 нэмэгдсэн , 2 устгасан
  1. 4 2
      h3d/fbx/Library.hx

+ 4 - 2
h3d/fbx/Library.hx

@@ -419,7 +419,9 @@ class Library {
 		var allTimes = new Map();
 
 		if( animNode != null ) for( cn in getChilds(animNode, "AnimationCurveNode") ) {
-			var model = getParent(cn, "Model");
+			var model = getParent(cn, "Model",true);
+			if(model==null) continue; //morph support
+			
 			var c = getObjectCurve(curves, model, cn.getName(), animName);
 			if( c == null ) continue;
 			var data = getChilds(cn, "AnimationCurve");
@@ -1063,4 +1065,4 @@ class Library {
 		return d;
 	}
 
-}
+}