Skip to content

Commit

Permalink
Merge pull request #84762 from timothyqiu/snap-mode
Browse files Browse the repository at this point in the history
Fix texture region editor not selecting restored snap mode
  • Loading branch information
akien-mga committed Nov 11, 2023
2 parents bfa687a + 64fb22e commit 4e867b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion editor/plugins/texture_region_editor_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1095,7 +1095,7 @@ TextureRegionEditor::TextureRegionEditor() {
snap_mode_button->add_item(TTR("Pixel Snap"), 1);
snap_mode_button->add_item(TTR("Grid Snap"), 2);
snap_mode_button->add_item(TTR("Auto Slice"), 3);
snap_mode_button->select(0);
snap_mode_button->select(snap_mode);
snap_mode_button->connect("item_selected", callable_mp(this, &TextureRegionEditor::_set_snap_mode));

hb_grid = memnew(HBoxContainer);
Expand Down

0 comments on commit 4e867b5

Please sign in to comment.