Skip to content

Commit 9271efb

Browse files
authored
Merge pull request #341 from Unity-Technologies/Uni-40100-ErrorExportingAnimatedLOD
Uni-40100-ErrorExportingAnimatedLOD
2 parents a16d950 + c39e6e9 commit 9271efb

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
@@ -1802,7 +1802,8 @@ protected void ExportAnimationClip (AnimationClip uniAnimClip, GameObject uniRoo
18021802
}
18031803

18041804
var uniGO = GetGameObject (uniObj);
1805-
if (!uniGO) {
1805+
// 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.
1806+
if (!uniGO || MapUnityObjectToFbxNode.ContainsKey(uniGO) == false) {
18061807
continue;
18071808
}
18081809

0 commit comments

Comments
 (0)