Skip to content

Commit 99c2e0a

Browse files
authored
Merge pull request #347 from Unity-Technologies/UNI-41961-fix-anim-only-export-error
UNI-41961 fix anim only export for model without anim error
2 parents 605273d + 9fe4284 commit 99c2e0a

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
@@ -2792,7 +2792,7 @@ protected Dictionary<GameObject, AnimationOnlyExportData> GetAnimationExportData
27922792
{
27932793
exportData.defaultClip = rootAnimation.clip;
27942794
}
2795-
else
2795+
else if(rootAnimator)
27962796
{
27972797
// Try the animator controller (mecanim)
27982798
var controller = rootAnimator.runtimeAnimatorController;

0 commit comments

Comments
 (0)