mirror of
https://github.com/aelurum/AssetStudio.git
synced 2025-06-03 00:58:13 -04:00
Fixed #234
This commit is contained in:
parent
e034ac5c1e
commit
21ff88c890
@ -211,6 +211,11 @@ namespace AssetStudio
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (fileGen > 6 && m_Version == "")
|
||||||
|
{
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
if (platform > 255 || platform < 0)
|
if (platform > 255 || platform < 0)
|
||||||
{
|
{
|
||||||
byte[] b32 = BitConverter.GetBytes(platform);
|
byte[] b32 = BitConverter.GetBytes(platform);
|
||||||
|
@ -672,22 +672,30 @@ namespace AssetStudio
|
|||||||
{
|
{
|
||||||
var gameObjects = new List<GameObject>();
|
var gameObjects = new List<GameObject>();
|
||||||
GetSelectedParentNode(nodes, gameObjects);
|
GetSelectedParentNode(nodes, gameObjects);
|
||||||
SetProgressBarValue(0);
|
if (gameObjects.Count > 0)
|
||||||
SetProgressBarMaximum(gameObjects.Count);
|
|
||||||
foreach (var gameObject in gameObjects)
|
|
||||||
{
|
{
|
||||||
StatusStripUpdate($"Exporting {gameObject.Text}");
|
SetProgressBarValue(0);
|
||||||
try
|
SetProgressBarMaximum(gameObjects.Count);
|
||||||
|
foreach (var gameObject in gameObjects)
|
||||||
{
|
{
|
||||||
ExportGameObject(gameObject, exportPath, animationList);
|
StatusStripUpdate($"Exporting {gameObject.Text}");
|
||||||
StatusStripUpdate($"Finished 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)
|
}
|
||||||
{
|
else
|
||||||
MessageBox.Show($"{ex.Message}\r\n{ex.StackTrace}");
|
{
|
||||||
StatusStripUpdate("Error in export");
|
StatusStripUpdate("No Object can be exported.");
|
||||||
}
|
|
||||||
ProgressBarPerformStep();
|
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user