From: Holger Schemel Date: Sat, 1 Apr 2023 10:10:13 +0000 (+0200) Subject: fixed toolbox gadgets on properties page after test game in level editor X-Git-Tag: 4.3.5.3~2 X-Git-Url: https://git.artsoft.org/?a=commitdiff_plain;h=e34b75ad13d1120b9cfc1cb1d2308203ba13c0fe;p=rocksndiamonds.git fixed toolbox gadgets on properties page after test game in level editor --- 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();