mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-23 04:12:12 +00:00
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:
parent
7bbf88de6b
commit
0fb4c98a77
1 changed files with 10 additions and 10 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue