mirror of
https://github.com/xivdev/Penumbra.git
synced 2025-12-15 05:04:15 +01:00
Fix two import bugs.
This commit is contained in:
parent
1efd493834
commit
3b980c1a49
2 changed files with 2 additions and 0 deletions
|
|
@ -243,6 +243,7 @@ public class MigrationManager(Configuration config) : IService
|
||||||
using var s = new MemoryStream();
|
using var s = new MemoryStream();
|
||||||
using var e = reader.OpenEntryStream();
|
using var e = reader.OpenEntryStream();
|
||||||
e.CopyTo(s);
|
e.CopyTo(s);
|
||||||
|
s.Position = 0;
|
||||||
using var b = new BinaryReader(s);
|
using var b = new BinaryReader(s);
|
||||||
var version = b.ReadUInt32();
|
var version = b.ReadUInt32();
|
||||||
if (version == MdlFile.V5)
|
if (version == MdlFile.V5)
|
||||||
|
|
|
||||||
|
|
@ -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);
|
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))
|
if (ImUtf8.Checkbox("Automatically Migrate Materials to Dawntrail on Import"u8, ref value))
|
||||||
{
|
{
|
||||||
config.MigrateImportedMaterialsToLegacy = value;
|
config.MigrateImportedMaterialsToLegacy = value;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue