diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-04-04 15:31:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-04 15:31:10 +0200 |
commit | c5bb997a8f2d538cc89ac09ddd0ea8d5cf69df88 (patch) | |
tree | d88e127771e9933ad60ecbb9ee7cf11ae4dc0f8c /editor | |
parent | cbe886b6191b8fefc5ddf665aba0d0e6e292e28a (diff) | |
parent | 0853ac2006194afc7f96ad49cb15fc1e0746c83f (diff) |
Merge pull request #17969 from Alexander-Alekseev/upd_xform_btns_using_shortcuts
Update transform buttons in tile editor while using T, A, S shortcuts
Diffstat (limited to 'editor')
-rw-r--r-- | editor/plugins/tile_map_editor_plugin.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/editor/plugins/tile_map_editor_plugin.cpp b/editor/plugins/tile_map_editor_plugin.cpp index 89aa79527e..14c584fa35 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<InputEvent> &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; } |