fixed toolbox gadgets on properties page after test game in level editor
authorHolger Schemel <info@artsoft.org>
Sat, 1 Apr 2023 10:10:13 +0000 (12:10 +0200)
committerHolger Schemel <info@artsoft.org>
Sat, 1 Apr 2023 10:10:13 +0000 (12:10 +0200)
src/editor.c

index edd8b12f224f50c3dc0f07097b0ccd34bd6d2c94..a3ab4c4c3e9abfafcba5aea076ec3c7557f14863 100644 (file)
@@ -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();