mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2024-11-25 21:31:14 +00:00
selection is now maintained on joins and splits
This commit is contained in:
parent
935e21b47d
commit
c5625fc1c0
2 changed files with 5 additions and 0 deletions
|
@ -117,6 +117,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
this.start = start;
|
||||
this.end = end;
|
||||
this.updateneeded = true;
|
||||
this.args = new byte[NUM_ARGS];
|
||||
|
||||
// Attach to vertices
|
||||
startvertexlistitem = start.AttachLinedef(this);
|
||||
|
@ -481,6 +482,7 @@ namespace CodeImp.DoomBuilder.Map
|
|||
nl = map.CreateLinedef(v, end);
|
||||
CopyPropertiesTo(nl);
|
||||
SetEndVertex(v);
|
||||
nl.selected = this.selected;
|
||||
|
||||
// Copy front sidedef if exists
|
||||
if(front != null)
|
||||
|
|
|
@ -246,6 +246,9 @@ namespace CodeImp.DoomBuilder.Map
|
|||
current = previous;
|
||||
}
|
||||
|
||||
// If either of the two vertices was selected, keep the other selected
|
||||
if(this.selected) other.selected = true;
|
||||
|
||||
// Remove this vertex
|
||||
this.Dispose();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue