This commit is contained in:
Perfare 2018-07-24 13:02:08 +08:00
parent e034ac5c1e
commit 21ff88c890
2 changed files with 26 additions and 13 deletions

View File

@ -211,6 +211,11 @@ namespace AssetStudio
}
}
if (fileGen > 6 && m_Version == "")
{
return;
}
if (platform > 255 || platform < 0)
{
byte[] b32 = BitConverter.GetBytes(platform);

View File

@ -672,22 +672,30 @@ namespace AssetStudio
{
var gameObjects = new List<GameObject>();
GetSelectedParentNode(nodes, gameObjects);
SetProgressBarValue(0);
SetProgressBarMaximum(gameObjects.Count);
foreach (var gameObject in gameObjects)
if (gameObjects.Count > 0)
{
StatusStripUpdate($"Exporting {gameObject.Text}");
try
SetProgressBarValue(0);
SetProgressBarMaximum(gameObjects.Count);
foreach (var gameObject in gameObjects)
{
ExportGameObject(gameObject, exportPath, animationList);
StatusStripUpdate($"Finished exporting {gameObject.Text}");
StatusStripUpdate($"Exporting {gameObject.Text}");
try
{
ExportGameObject(gameObject, exportPath, animationList);
StatusStripUpdate($"Finished exporting {gameObject.Text}");
}
catch (Exception ex)
{
MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}");
StatusStripUpdate("Error in export");
}
ProgressBarPerformStep();
}
catch (Exception ex)
{
MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}");
StatusStripUpdate("Error in export");
}
ProgressBarPerformStep();
}
else
{
StatusStripUpdate("No Object can be exported.");
}
});
}