From 55b8e24bd8992d0b0c72554aa7c39e62da3ac10f Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Sun, 18 Jun 2023 16:26:01 +0200 Subject: [PATCH 1/3] UDBScript: fixed an issue where the Thing's class getSector method did not return null when the thing was not in a sector. Fixes #897 --- Source/Plugins/UDBScript/API/ThingWrapper.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Source/Plugins/UDBScript/API/ThingWrapper.cs b/Source/Plugins/UDBScript/API/ThingWrapper.cs index ed7f3070..062a73f4 100644 --- a/Source/Plugins/UDBScript/API/ThingWrapper.cs +++ b/Source/Plugins/UDBScript/API/ThingWrapper.cs @@ -515,6 +515,8 @@ namespace CodeImp.DoomBuilder.UDBScript.Wrapper public SectorWrapper getSector() { thing.DetermineSector(); + if (thing.Sector == null) + return null; return new SectorWrapper(thing.Sector); } From e802bb364aa3ad6169f6f07e87f4958d339b6fce Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Sun, 18 Jun 2023 16:31:27 +0200 Subject: [PATCH 2/3] UDBScript: fixed a problem where hot reloading would not scroll the the previously selected script --- Source/Plugins/UDBScript/Controls/ScriptDockerControl.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Plugins/UDBScript/Controls/ScriptDockerControl.cs b/Source/Plugins/UDBScript/Controls/ScriptDockerControl.cs index 66fd7424..19fe3565 100644 --- a/Source/Plugins/UDBScript/Controls/ScriptDockerControl.cs +++ b/Source/Plugins/UDBScript/Controls/ScriptDockerControl.cs @@ -243,6 +243,7 @@ namespace CodeImp.DoomBuilder.UDBScript if (result != null) { filetree.SelectedNodes.Add(result); + result.EnsureVisible(); break; } } From 6f047e434724d62ed284fe8d0b42b34d66eb6630 Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Mon, 19 Jun 2023 20:27:26 +0200 Subject: [PATCH 3/3] Draw Grid Mode: fixed a problem where "continuous drawing" would redraw all previously drawn shapes each time a drawing was finished. Fixes #912 --- Source/Plugins/BuilderModes/ClassicModes/DrawGridMode.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Plugins/BuilderModes/ClassicModes/DrawGridMode.cs b/Source/Plugins/BuilderModes/ClassicModes/DrawGridMode.cs index 29333044..1c27aa13 100755 --- a/Source/Plugins/BuilderModes/ClassicModes/DrawGridMode.cs +++ b/Source/Plugins/BuilderModes/ClassicModes/DrawGridMode.cs @@ -152,6 +152,7 @@ namespace CodeImp.DoomBuilder.BuilderModes { // Reset settings points.Clear(); + gridpoints.Clear(); labels.Clear(); drawingautoclosed = false;