Stair Sector Builder Mode: fixed an issue where the number of sectors and the sector depth was not loaded correctly when a default prefab was set. Fixes #847

This commit is contained in:
biwa 2023-01-28 23:52:07 +01:00 committed by spherallic
parent 4c40441e01
commit 9f7b511224

View file

@ -278,16 +278,6 @@ namespace CodeImp.DoomBuilder.StairSectorBuilderMode
}
}
// Check if there's a "[Default]" prefab and load it if so
foreach (BuilderPlug.Prefab p in BuilderPlug.Me.Prefabs)
{
if(p.name == "[Default]")
{
LoadPrefab(p);
break;
}
}
// Show window
base.Show(owner);
}
@ -432,6 +422,16 @@ namespace CodeImp.DoomBuilder.StairSectorBuilderMode
autocurveflipping.SelectedIndex = 0;
MiddleTextureTexture = "-";
// Check if there's a "[Default]" prefab and load it if so
foreach (BuilderPlug.Prefab p in BuilderPlug.Me.Prefabs)
{
if (p.name == "[Default]")
{
LoadPrefab(p);
break;
}
}
fullyloaded = true;
ComputeHeights();