Merge pull request #84762 from timothyqiu/snap-mode

Fix texture region editor not selecting restored snap mode
This commit is contained in:
Rémi Verschelde 2023-11-11 23:06:24 +01:00
commit 4e867b5835
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -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);