mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
Fixed crash after merging/joining sectors and selecting the result
This commit is contained in:
parent
dbe8ba535f
commit
ff51c735f7
1 changed files with 5 additions and 4 deletions
|
@ -124,8 +124,8 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
foreach(Sector s in General.Map.Map.Sectors)
|
||||
{
|
||||
// Setup labels
|
||||
TextLabel[] labelarray = new TextLabel[s.Triangles.IslandVertices.Count];
|
||||
for(int i = 0; i < s.Triangles.IslandVertices.Count; i++)
|
||||
TextLabel[] labelarray = new TextLabel[s.Labels.Count];
|
||||
for(int i = 0; i < s.Labels.Count; i++)
|
||||
{
|
||||
Vector2D v = s.Labels[i].position;
|
||||
labelarray[i] = new TextLabel(20);
|
||||
|
@ -207,6 +207,9 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
// Clear selection
|
||||
General.Map.Map.ClearAllSelected();
|
||||
|
||||
// Update
|
||||
General.Map.Map.Update();
|
||||
|
||||
// Make text labels for sectors
|
||||
SetupLabels();
|
||||
UpdateSelectedLabels();
|
||||
|
@ -1068,7 +1071,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
General.Map.IsChanged = true;
|
||||
|
||||
// Redraw display
|
||||
General.Map.Map.Update();
|
||||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
}
|
||||
|
@ -1094,7 +1096,6 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
|||
General.Map.IsChanged = true;
|
||||
|
||||
// Redraw display
|
||||
General.Map.Map.Update();
|
||||
General.Interface.RedrawDisplay();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue