Skip to content

Commit 9fe4284

Browse files
committed
check if rootAnimator exists
1 parent 497b9e3 commit 9fe4284

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/FbxExporters/Editor/FbxExporter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2503,7 +2503,7 @@ protected Dictionary<GameObject, AnimationOnlyExportData> GetAnimationExportData
25032503
{
25042504
exportData.defaultClip = rootAnimation.clip;
25052505
}
2506-
else
2506+
else if(rootAnimator)
25072507
{
25082508
// Try the animator controller (mecanim)
25092509
var controller = rootAnimator.runtimeAnimatorController;

0 commit comments

Comments
 (0)