From 3ef7237fff45daa6b353a9113aecda251f40f12a Mon Sep 17 00:00:00 2001 From: Haxardous <30158626+Haxardous@users.noreply.github.com> Date: Sat, 11 Feb 2023 13:18:33 +0000 Subject: [PATCH] remove return statement blocking delete button from restoring element. --- [editor]/editor_main/client/main.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/[editor]/editor_main/client/main.lua b/[editor]/editor_main/client/main.lua index 024c49938..66884bfc2 100644 --- a/[editor]/editor_main/client/main.lua +++ b/[editor]/editor_main/client/main.lua @@ -982,9 +982,9 @@ function getMaxSelectDistance() end function destroySelectedElement(key) - if key then return + if key then editor_gui.restoreSelectedElement() - end + end if g_selectedElement then local element = g_selectedElement dropElement(false)