Skip to content
Snippets Groups Projects
Commit 0fb4c98a authored by biwa's avatar biwa
Browse files

Stair Sector Builder Mode: fixed an issue where the number of sectors and the...

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
parent 7bbf88de
No related branches found
No related tags found
No related merge requests found
......@@ -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();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment