mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-14 12:44:19 +01:00
Render export errors
This commit is contained in:
parent
a059942bb2
commit
9f981a3e52
2 changed files with 8 additions and 1 deletions
|
|
@ -17,6 +17,7 @@ public partial class ModEditWindow
|
||||||
private readonly List<string>[] _attributes;
|
private readonly List<string>[] _attributes;
|
||||||
|
|
||||||
public bool PendingIo { get; private set; } = false;
|
public bool PendingIo { get; private set; } = false;
|
||||||
|
public string? IoException { get; private set; } = null;
|
||||||
|
|
||||||
// TODO: this can probably be genericised across all of chara
|
// TODO: this can probably be genericised across all of chara
|
||||||
[GeneratedRegex(@"chara/equipment/e(?'Set'\d{4})/model/c(?'Race'\d{4})e\k'Set'_.+\.mdl", RegexOptions.Compiled)]
|
[GeneratedRegex(@"chara/equipment/e(?'Set'\d{4})/model/c(?'Race'\d{4})e\k'Set'_.+\.mdl", RegexOptions.Compiled)]
|
||||||
|
|
@ -74,7 +75,10 @@ public partial class ModEditWindow
|
||||||
|
|
||||||
PendingIo = true;
|
PendingIo = true;
|
||||||
_edit._models.ExportToGltf(Mdl, sklb, outputPath)
|
_edit._models.ExportToGltf(Mdl, sklb, outputPath)
|
||||||
.ContinueWith(_ => PendingIo = false);
|
.ContinueWith(task => {
|
||||||
|
IoException = task.Exception?.ToString();
|
||||||
|
PendingIo = false;
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary> Try to find the .sklb path for a .mdl file. </summary>
|
/// <summary> Try to find the .sklb path for a .mdl file. </summary>
|
||||||
|
|
|
||||||
|
|
@ -42,6 +42,9 @@ public partial class ModEditWindow
|
||||||
foreach (var gamePath in tab.GamePaths)
|
foreach (var gamePath in tab.GamePaths)
|
||||||
ImGui.TextUnformatted(gamePath.ToString());
|
ImGui.TextUnformatted(gamePath.ToString());
|
||||||
|
|
||||||
|
if (tab.IoException != null)
|
||||||
|
ImGui.TextUnformatted(tab.IoException);
|
||||||
|
|
||||||
var ret = false;
|
var ret = false;
|
||||||
|
|
||||||
ret |= DrawModelMaterialDetails(tab, disabled);
|
ret |= DrawModelMaterialDetails(tab, disabled);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue