mirror of
https://git.do.srb2.org/STJr/ZoneBuilder.git
synced 2025-02-10 17:51:17 +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
4c40441e01
commit
9f7b511224
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
|
// Show window
|
||||||
base.Show(owner);
|
base.Show(owner);
|
||||||
}
|
}
|
||||||
|
@ -432,6 +422,16 @@ namespace CodeImp.DoomBuilder.StairSectorBuilderMode
|
||||||
autocurveflipping.SelectedIndex = 0;
|
autocurveflipping.SelectedIndex = 0;
|
||||||
MiddleTextureTexture = "-";
|
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;
|
fullyloaded = true;
|
||||||
|
|
||||||
ComputeHeights();
|
ComputeHeights();
|
||||||
|
|
Loading…
Reference in a new issue