Skip to content

Commit f0d0285

Browse files
authored
editor: fixes delete button not restoring element. #412 (#413)
remove return statement blocking delete button from restoring element.
1 parent 46448d9 commit f0d0285

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

[editor]/editor_main/client/main.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -982,9 +982,9 @@ function getMaxSelectDistance()
982982
end
983983

984984
function destroySelectedElement(key)
985-
if key then return
985+
if key then
986986
editor_gui.restoreSelectedElement()
987-
end
987+
end
988988
if g_selectedElement then
989989
local element = g_selectedElement
990990
dropElement(false)

0 commit comments

Comments
 (0)