mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-27 06:02:11 +00:00
Selection is now kept when leaving Edit Selection mode (also when pasting)
This commit is contained in:
parent
50d06210df
commit
93bcd61f7b
1 changed files with 6 additions and 2 deletions
|
@ -1009,9 +1009,13 @@ namespace CodeImp.DoomBuilder.BuilderModes
|
||||||
// Update cached values
|
// Update cached values
|
||||||
General.Map.Data.UpdateUsedTextures();
|
General.Map.Data.UpdateUsedTextures();
|
||||||
General.Map.Map.Update();
|
General.Map.Map.Update();
|
||||||
|
|
||||||
// Clear selection
|
// Make normal selection
|
||||||
General.Map.Map.ClearAllSelected();
|
General.Map.Map.ClearAllSelected();
|
||||||
|
foreach(Vertex v in selectedvertices) v.Selected = true;
|
||||||
|
foreach(Linedef l in selectedlines) { l.Start.Selected = true; l.End.Selected = true; }
|
||||||
|
foreach(Thing t in selectedthings) t.Selected = true;
|
||||||
|
General.Map.Map.SelectionType = SelectionType.Vertices | SelectionType.Things;
|
||||||
|
|
||||||
// Done
|
// Done
|
||||||
selectedvertices = new List<Vertex>();
|
selectedvertices = new List<Vertex>();
|
||||||
|
|
Loading…
Reference in a new issue