mirror of
https://git.do.srb2.org/STJr/UltimateZoneBuilder.git
synced 2025-02-18 01:51:32 +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.start = start;
|
||||||
this.end = end;
|
this.end = end;
|
||||||
this.updateneeded = true;
|
this.updateneeded = true;
|
||||||
|
this.args = new byte[NUM_ARGS];
|
||||||
|
|
||||||
// Attach to vertices
|
// Attach to vertices
|
||||||
startvertexlistitem = start.AttachLinedef(this);
|
startvertexlistitem = start.AttachLinedef(this);
|
||||||
|
@ -481,6 +482,7 @@ namespace CodeImp.DoomBuilder.Map
|
||||||
nl = map.CreateLinedef(v, end);
|
nl = map.CreateLinedef(v, end);
|
||||||
CopyPropertiesTo(nl);
|
CopyPropertiesTo(nl);
|
||||||
SetEndVertex(v);
|
SetEndVertex(v);
|
||||||
|
nl.selected = this.selected;
|
||||||
|
|
||||||
// Copy front sidedef if exists
|
// Copy front sidedef if exists
|
||||||
if(front != null)
|
if(front != null)
|
||||||
|
|
|
@ -246,6 +246,9 @@ namespace CodeImp.DoomBuilder.Map
|
||||||
current = previous;
|
current = previous;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If either of the two vertices was selected, keep the other selected
|
||||||
|
if(this.selected) other.selected = true;
|
||||||
|
|
||||||
// Remove this vertex
|
// Remove this vertex
|
||||||
this.Dispose();
|
this.Dispose();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue