From 0853ac2006194afc7f96ad49cb15fc1e0746c83f Mon Sep 17 00:00:00 2001 From: Alexander Alekseev Date: Wed, 4 Apr 2018 16:02:44 +0300 Subject: [PATCH] Update transform buttons in tile editor while using T, A, S shortcuts (fixes #17962) --- editor/plugins/tile_map_editor_plugin.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp index 89aa79527e2..14c584fa358 100644 --- a/editor/plugins/tile_map_editor_plugin.cpp +++ b/editor/plugins/tile_map_editor_plugin.cpp @@ -1209,18 +1209,21 @@ bool TileMapEditor::forward_gui_input(const Ref &p_event) { if (ED_IS_SHORTCUT("tile_map_editor/mirror_x", p_event)) { flip_h = !flip_h; mirror_x->set_pressed(flip_h); + _update_transform_buttons(); canvas_item_editor->update(); return true; } if (ED_IS_SHORTCUT("tile_map_editor/mirror_y", p_event)) { flip_v = !flip_v; mirror_y->set_pressed(flip_v); + _update_transform_buttons(); canvas_item_editor->update(); return true; } if (ED_IS_SHORTCUT("tile_map_editor/transpose", p_event)) { transpose = !transpose; transp->set_pressed(transpose); + _update_transform_buttons(); canvas_item_editor->update(); return true; }