Skip to content

Commit

Permalink
Fix two import bugs.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ottermandias committed Jul 9, 2024
1 parent 1efd493 commit 3b980c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions Penumbra/Services/MigrationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -243,6 +243,7 @@ public void MigrateMdlDuringExtraction(IReader reader, string directory, Extract
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)
Expand Down
1 change: 1 addition & 0 deletions Penumbra/UI/Classes/MigrationSectionDrawer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ private void DrawSettings()

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;
Expand Down

0 comments on commit 3b980c1

Please sign in to comment.