Skip to content

Commit c39e6e9

Browse files
committed
Fixed bug
1 parent e366f21 commit c39e6e9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1805,7 +1805,8 @@ protected void ExportAnimationClip (AnimationClip uniAnimClip, GameObject uniRoo
18051805
}
18061806

18071807
var uniGO = GetGameObject (uniObj);
1808-
if (!uniGO) {
1808+
// Check if the GameObject has an FBX node to the animation. It might be null because the LOD selected doesn't match the one on the gameobject.
1809+
if (!uniGO || MapUnityObjectToFbxNode.ContainsKey(uniGO) == false) {
18091810
continue;
18101811
}
18111812

0 commit comments

Comments
 (0)