diff --git a/Source/Plugins/BuilderModes/ClassicModes/LinedefsMode.cs b/Source/Plugins/BuilderModes/ClassicModes/LinedefsMode.cs index eb96a6e..db2130e 100644 --- a/Source/Plugins/BuilderModes/ClassicModes/LinedefsMode.cs +++ b/Source/Plugins/BuilderModes/ClassicModes/LinedefsMode.cs @@ -1201,6 +1201,23 @@ namespace CodeImp.DoomBuilder.BuilderModes General.Interface.RedrawDisplay(); } + [BeginAction("selectnonessential")] + public void SelectNonEssential() + { + int counter = 0; + ICollection selected = General.Map.Map.GetSelectedLinedefs(true); + foreach (Linedef ld in selected) + { + if (ld.Back != null && ld.Front.Sector == ld.Back.Sector) + counter++; + else + ld.Selected = false; + } + + General.Interface.DisplayStatus(StatusType.Action, "Selected only non-essential lines (" + counter + ")"); + General.Interface.RedrawDisplay(); + } + [BeginAction("dissolveitem", BaseAction = true)] //mxd public void DissolveItem() { diff --git a/Source/Plugins/BuilderModes/Resources/Actions.cfg b/Source/Plugins/BuilderModes/Resources/Actions.cfg index c07a481..03a8c5a 100644 --- a/Source/Plugins/BuilderModes/Resources/Actions.cfg +++ b/Source/Plugins/BuilderModes/Resources/Actions.cfg @@ -345,9 +345,9 @@ resetflags selectnonessential { - title = "Select non-essential vertices"; - category = "vertices"; - description = "This selects all vertices that are not essential to sector shapes from your selection."; + title = "Select non-essential vertices/lines"; + category = "classic"; + description = "This selects all vertices or lines, that are not essential to sector shapes, from your selection."; allowkeys = true; allowmouse = true; allowscroll = true;