From 809bb24ae01396a923ad1e1bb83cfa5e33d5f00e Mon Sep 17 00:00:00 2001 From: biwa <6475593+biwa@users.noreply.github.com> Date: Wed, 6 Sep 2023 19:20:12 +0200 Subject: [PATCH] Visual Mode: fixed an issue where trying to apply a rotation to things that were not seen yet would cause a crash --- Source/Plugins/BuilderModes/VisualModes/BaseVisualMode.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Plugins/BuilderModes/VisualModes/BaseVisualMode.cs b/Source/Plugins/BuilderModes/VisualModes/BaseVisualMode.cs index 6b10f85d..e75922ec 100755 --- a/Source/Plugins/BuilderModes/VisualModes/BaseVisualMode.cs +++ b/Source/Plugins/BuilderModes/VisualModes/BaseVisualMode.cs @@ -1462,7 +1462,7 @@ namespace CodeImp.DoomBuilder.BuilderModes // Things are automatically selected on creation foreach (Thing t in General.Map.Map.GetSelectedThings(true)) - CreateVisualThing(t); + allthings[t] = CreateVisualThing(t); // For linedefs it's a bit more complicated... foreach (Linedef ld in General.Map.Map.GetSelectedLinedefs(true))