selection is now maintained on joins and splits

This commit is contained in:
codeimp 2008-05-01 10:59:19 +00:00
parent 935e21b47d
commit c5625fc1c0
2 changed files with 5 additions and 0 deletions

View file

@ -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)

View file

@ -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();
}