Update transform buttons in tile editor while using T, A, S shortcuts (fixes #17962)
This commit is contained in:
parent
cbe886b619
commit
0853ac2006
1 changed files with 3 additions and 0 deletions
|
@ -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)) {
|
if (ED_IS_SHORTCUT("tile_map_editor/mirror_x", p_event)) {
|
||||||
flip_h = !flip_h;
|
flip_h = !flip_h;
|
||||||
mirror_x->set_pressed(flip_h);
|
mirror_x->set_pressed(flip_h);
|
||||||
|
_update_transform_buttons();
|
||||||
canvas_item_editor->update();
|
canvas_item_editor->update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ED_IS_SHORTCUT("tile_map_editor/mirror_y", p_event)) {
|
if (ED_IS_SHORTCUT("tile_map_editor/mirror_y", p_event)) {
|
||||||
flip_v = !flip_v;
|
flip_v = !flip_v;
|
||||||
mirror_y->set_pressed(flip_v);
|
mirror_y->set_pressed(flip_v);
|
||||||
|
_update_transform_buttons();
|
||||||
canvas_item_editor->update();
|
canvas_item_editor->update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
if (ED_IS_SHORTCUT("tile_map_editor/transpose", p_event)) {
|
if (ED_IS_SHORTCUT("tile_map_editor/transpose", p_event)) {
|
||||||
transpose = !transpose;
|
transpose = !transpose;
|
||||||
transp->set_pressed(transpose);
|
transp->set_pressed(transpose);
|
||||||
|
_update_transform_buttons();
|
||||||
canvas_item_editor->update();
|
canvas_item_editor->update();
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue