From a7c5330042dc8a90d76861ddfde4521be6d209e2 Mon Sep 17 00:00:00 2001 From: Perfare Date: Sat, 1 Sep 2018 07:07:26 +0800 Subject: [PATCH] Fixed #257 --- AssetStudio/AssetStudioForm.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/AssetStudio/AssetStudioForm.cs b/AssetStudio/AssetStudioForm.cs index 1bd8294..6b5f128 100644 --- a/AssetStudio/AssetStudioForm.cs +++ b/AssetStudio/AssetStudioForm.cs @@ -287,7 +287,7 @@ namespace AssetStudio glControl1.Invalidate(); } break; - case Keys.N: + case Keys.N: if (e.Control) //Normal mode { normalMode = (normalMode + 1) % 2; @@ -1826,7 +1826,8 @@ namespace AssetStudio if (saveFolderDialog1.ShowDialog(this) == DialogResult.OK) { var exportPath = saveFolderDialog1.Folder + "\\GameObject\\"; - ExportObjectsWithAnimationClip(exportPath, sceneTreeView.Nodes, GetSelectedAssets()); + var animationList = GetSelectedAssets().Where(x => x.Type == ClassIDReference.AnimationClip).ToList(); + ExportObjectsWithAnimationClip(exportPath, sceneTreeView.Nodes, animationList.Count == 0 ? null : animationList); } } else