From 32cfe294e25247db70b5be1270400074ea2f784a Mon Sep 17 00:00:00 2001 From: wisselstem <36791160+spherallic@users.noreply.github.com> Date: Fri, 8 Sep 2023 19:19:57 +0200 Subject: [PATCH 1/2] Things Mode: update things filter when clone-dragging things (#951) --- Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs b/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs index 7724f761..335ce138 100755 --- a/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs +++ b/Source/Plugins/BuilderModes/ClassicModes/ThingsMode.cs @@ -809,6 +809,16 @@ namespace CodeImp.DoomBuilder.BuilderModes // All the cloned things are now the things we want to drag dragthings = clonedthings; + + // Update things filter + General.Map.ThingsFilter.Update(); + General.Interface.RefreshInfo(); + + //mxd. Update helper lines + UpdateHelperObjects(); + + // Redraw + General.Interface.RedrawDisplay(); } } From 5ce1b3a799333fb75b4b5bc16fe3b1dbebdb2d04 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Sat, 9 Sep 2023 13:49:38 +0200 Subject: [PATCH 2/2] Fixed an issue where the "exclude from testing" option was not read from the .dbs file. Fixes #947 --- Source/Core/Map/MapOptions.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Source/Core/Map/MapOptions.cs b/Source/Core/Map/MapOptions.cs index 1cdc691e..0d6a6eb7 100755 --- a/Source/Core/Map/MapOptions.cs +++ b/Source/Core/Map/MapOptions.cs @@ -272,12 +272,13 @@ namespace CodeImp.DoomBuilder.Map { // Create resource DataLocation res = new DataLocation(); - + // Copy information from Configuration to ResourceLocation - if(resinfo.Contains("type") && (resinfo["type"] is int)) res.type = (int)resinfo["type"]; - if(resinfo.Contains("location") && (resinfo["location"] is string)) res.location = (string)resinfo["location"]; - if(resinfo.Contains("textures") && (resinfo["textures"] is bool)) res.option1 = (bool)resinfo["textures"]; - if(resinfo.Contains("flats") && (resinfo["flats"] is bool)) res.option2 = (bool)resinfo["flats"]; + if (resinfo.Contains("type") && (resinfo["type"] is int)) res.type = (int)resinfo["type"]; + if (resinfo.Contains("location") && (resinfo["location"] is string)) res.location = (string)resinfo["location"]; + if (resinfo.Contains("textures") && (resinfo["textures"] is bool)) res.option1 = (bool)resinfo["textures"]; + if (resinfo.Contains("flats") && (resinfo["flats"] is bool)) res.option2 = (bool)resinfo["flats"]; + if (resinfo.Contains("notfortesting") && (resinfo["notfortesting"] is int)) res.notfortesting = Convert.ToBoolean(resinfo["notfortesting"]); // Add resource AddResource(res);