Sfoglia il codice sorgente

don't skip animation for Camera Target

ncannasse 10 anni fa
parent
commit
e93a231696
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      hxd/fmt/fbx/BaseLibrary.hx

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

@@ -419,8 +419,8 @@ class BaseLibrary {
 		var name = model.getName();
 		if( skipObjects.get(name) )
 			return null;
-		// if it's an empty model with no sub nodes, let's ignore it (ex : Camera)
-		if( model.getType() == "Null" && getChilds(model, "Model").length == 0 )
+		// if it's an empty model with no sub nodes, let's ignore it (except Camera Target)
+		if( model.getType() == "Null" && getChilds(model, "Model").length == 0 && name.split(".").pop() != "Target" )
 			return null;
 		var def = getDefaultMatrixes(model);
 		if( def == null )