save mesh

This commit is contained in:
4sval
2022-12-03 02:02:29 +01:00
parent 88fa0dfd82
commit 7a9556e957
8 changed files with 147 additions and 41 deletions

View File

@@ -873,11 +873,11 @@ public class CUE4ParseViewModel : ViewModel
};
var toSave = new Exporter(export, exportOptions);
var toSaveDirectory = new DirectoryInfo(UserSettings.Default.ModelDirectory);
if (toSave.TryWriteToDir(toSaveDirectory, out var savedFileName))
if (toSave.TryWriteToDir(toSaveDirectory, out var label, out var savedFilePath))
{
Log.Information("Successfully saved {FileName}", savedFileName);
Log.Information("Successfully saved {FilePath}", savedFilePath);
FLogger.AppendInformation();
FLogger.AppendText($"Successfully saved {savedFileName}", Constants.WHITE, true);
FLogger.AppendText($"Successfully saved {label}", Constants.WHITE, true);
}
else
{