aboutsummaryrefslogtreecommitdiff
path: root/editor/plugins
diff options
context:
space:
mode:
authorAlexander Alekseev2018-04-04 16:02:44 +0300
committerHein-Pieter van Braam2018-04-28 20:24:00 +0200
commit0f5a3d23ea03fb41b5f2732b40502ab11b7da0ae (patch)
treeb62b58ec03c60e982c264871382fa85afbe997a1 /editor/plugins
parent2e31c9fe10af6010865916e74779627017c7b67d (diff)
downloadgodot-0f5a3d23ea03fb41b5f2732b40502ab11b7da0ae.tar.gz
godot-0f5a3d23ea03fb41b5f2732b40502ab11b7da0ae.tar.zst
godot-0f5a3d23ea03fb41b5f2732b40502ab11b7da0ae.zip
Update transform buttons in tile editor while using T, A, S shortcuts (fixes #17962)
(cherry picked from commit 0853ac2006194afc7f96ad49cb15fc1e0746c83f)
Diffstat (limited to 'editor/plugins')
-rw-r--r--editor/plugins/tile_map_editor_plugin.cpp3
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 a102d99d1..6d2ad5397 100644
--- a/editor/plugins/tile_map_editor_plugin.cpp
+++ b/editor/plugins/tile_map_editor_plugin.cpp
@@ -1142,18 +1142,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;
}