- Fixed update of geometry surfaces in Edit Selection mode on paste and flip

- Little optimization in MarkSelected... functions
This commit is contained in:
codeimp 2009-05-13 09:35:13 +00:00
parent 5d6e077efb
commit 5bebe5087f
2 changed files with 7 additions and 4 deletions

View file

@ -1306,25 +1306,25 @@ namespace CodeImp.DoomBuilder.Map
// This creates a marking from selection
public void MarkSelectedVertices(bool selected, bool mark)
{
foreach(Vertex v in vertices) if(v.Selected == selected) v.Marked = mark;
foreach(Vertex v in sel_vertices) v.Marked = mark;
}
// This creates a marking from selection
public void MarkSelectedLinedefs(bool selected, bool mark)
{
foreach(Linedef l in linedefs) if(l.Selected == selected) l.Marked = mark;
foreach(Linedef l in sel_linedefs) l.Marked = mark;
}
// This creates a marking from selection
public void MarkSelectedSectors(bool selected, bool mark)
{
foreach(Sector s in sectors) if(s.Selected == selected) s.Marked = mark;
foreach(Sector s in sel_sectors) s.Marked = mark;
}
// This creates a marking from selection
public void MarkSelectedThings(bool selected, bool mark)
{
foreach(Thing t in things) if(t.Selected == selected) t.Marked = mark;
foreach(Thing t in sel_things) t.Marked = mark;
}
/// <summary>

View file

@ -715,6 +715,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
}
UpdateGeometry();
General.Map.Map.Update();
}
// Set presentation
@ -1272,6 +1273,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Update
UpdateGeometry();
UpdateRectangleComponents();
General.Map.Map.Update();
General.Interface.RedrawDisplay();
}
@ -1286,6 +1288,7 @@ namespace CodeImp.DoomBuilder.BuilderModes
// Update
UpdateGeometry();
UpdateRectangleComponents();
General.Map.Map.Update();
General.Interface.RedrawDisplay();
}