From c5625fc1c01a813099776f0be9b8a4b0d324db40 Mon Sep 17 00:00:00 2001 From: codeimp Date: Thu, 1 May 2008 10:59:19 +0000 Subject: [PATCH] selection is now maintained on joins and splits --- Source/Map/Linedef.cs | 2 ++ Source/Map/Vertex.cs | 3 +++ 2 files changed, 5 insertions(+) diff --git a/Source/Map/Linedef.cs b/Source/Map/Linedef.cs index c146a812..7d8729b8 100644 --- a/Source/Map/Linedef.cs +++ b/Source/Map/Linedef.cs @@ -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) diff --git a/Source/Map/Vertex.cs b/Source/Map/Vertex.cs index 92bb597d..9b2fa1ad 100644 --- a/Source/Map/Vertex.cs +++ b/Source/Map/Vertex.cs @@ -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(); }