Fix two import bugs.

This commit is contained in:
Ottermandias 2024-07-09 18:09:37 +02:00
parent 1efd493834
commit 3b980c1a49
2 changed files with 2 additions and 0 deletions

View file

@ -243,6 +243,7 @@ public class MigrationManager(Configuration config) : IService
using var s = new MemoryStream();
using var e = reader.OpenEntryStream();
e.CopyTo(s);
s.Position = 0;
using var b = new BinaryReader(s);
var version = b.ReadUInt32();
if (version == MdlFile.V5)

View file

@ -39,6 +39,7 @@ public class MigrationSectionDrawer(MigrationManager migrationManager, Configura
ImUtf8.HoverTooltip("This increments the version marker and restructures the bone table to the new version."u8);
value = config.MigrateImportedMaterialsToLegacy;
if (ImUtf8.Checkbox("Automatically Migrate Materials to Dawntrail on Import"u8, ref value))
{
config.MigrateImportedMaterialsToLegacy = value;