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
parent 7bbf88de6b
commit 0fb4c98a77

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();