mirror of
https://github.com/godotengine/godot.git
synced 2025-12-07 22:00:10 +00:00
Fix texture region editor not selecting restored snap mode
(cherry picked from commit 64fb22e17b)
This commit is contained in:
parent
b3b9342bf1
commit
c5e94ad9de
1 changed files with 1 additions and 1 deletions
|
|
@ -1099,7 +1099,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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue