From e34b75ad13d1120b9cfc1cb1d2308203ba13c0fe Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Sat, 1 Apr 2023 12:10:13 +0200 Subject: [PATCH] fixed toolbox gadgets on properties page after test game in level editor --- src/editor.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/editor.c b/src/editor.c index edd8b12f..a3ab4c4c 100644 --- a/src/editor.c +++ b/src/editor.c @@ -8805,6 +8805,15 @@ static void DrawEditorDoorContent(void) // draw all toolbox gadgets to editor doors MapControlButtons(); + // when returning from test game to properties page, redraw toolbox gadgets + if (edit_mode == ED_MODE_PROPERTIES) + { + UnmapLevelEditorToolboxDrawingGadgets(); + UnmapLevelEditorToolboxCustomGadgets(); + + MapLevelEditorToolboxCustomGadgetsIfNeeded(); + } + // draw all palette gadgets to editor doors ModifyEditorElementList(); RedrawDrawingElements(); -- 2.34.1