This commit is contained in:
Perfare
2018-04-13 03:16:09 +08:00
parent e3a0ab4e4a
commit 906149a58a
3 changed files with 16 additions and 13 deletions

View File

@@ -510,13 +510,14 @@ namespace AssetStudio
{
ThreadPool.QueueUserWorkItem(state =>
{
var result = false;
bool result;
try
{
result = ExportAnimator(animator, animationList, exportPath);
}
catch (Exception ex)
{
result = false;
MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}");
}
StatusStripUpdate(result ? "Successfully exported" : "Nothing exported.");
@@ -526,7 +527,16 @@ namespace AssetStudio
public static void ExportObjectsWithAnimationClip(GameObject gameObject, List<AssetPreloadData> animationList, string exportPath)
{
var result = ExportGameObject(gameObject, animationList, exportPath);
bool result;
try
{
result = ExportGameObject(gameObject, animationList, exportPath);
}
catch (Exception ex)
{
result = false;
MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}");
}
StatusStripUpdate(result ? "Successfully exported" : "Nothing exported.");
}
}