Disable material migration for now

This commit is contained in:
Ottermandias 2024-07-16 22:04:36 +02:00
parent 07c3be641d
commit 9c781f8563
3 changed files with 31 additions and 21 deletions

View file

@ -22,10 +22,11 @@ public class MigrationSectionDrawer(MigrationManager migrationManager, Configura
DrawMdlMigration();
DrawMdlRestore();
DrawMdlCleanup();
ImGui.Separator();
DrawMtrlMigration();
DrawMtrlRestore();
DrawMtrlCleanup();
// TODO enable when this works
//ImGui.Separator();
//DrawMtrlMigration();
//DrawMtrlRestore();
//DrawMtrlCleanup();
}
private void DrawSettings()
@ -39,15 +40,16 @@ 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;
config.Save();
}
ImUtf8.HoverTooltip(
"This currently only increases the color-table size and switches the shader from 'character.shpk' to 'characterlegacy.shpk', if the former is used."u8);
// TODO enable when this works
//value = config.MigrateImportedMaterialsToLegacy;
//if (ImUtf8.Checkbox("Automatically Migrate Materials to Dawntrail on Import"u8, ref value))
//{
// config.MigrateImportedMaterialsToLegacy = value;
// config.Save();
//}
//
//ImUtf8.HoverTooltip(
// "This currently only increases the color-table size and switches the shader from 'character.shpk' to 'characterlegacy.shpk', if the former is used."u8);
ImUtf8.Checkbox("Create Backups During Manual Migration", ref _createBackups);
}