X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Feditor.c;fp=src%2Feditor.c;h=a3ab4c4c3e9abfafcba5aea076ec3c7557f14863;hb=e34b75ad13d1120b9cfc1cb1d2308203ba13c0fe;hp=edd8b12f224f50c3dc0f07097b0ccd34bd6d2c94;hpb=ce7a1e6952d05d6eecdae03ea3110f8ca6807cb3;p=rocksndiamonds.git 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();