diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-11 23:06:24 +0100 |
---|---|---|
committer | Rémi Verschelde <rverschelde@gmail.com> | 2023-11-11 23:06:24 +0100 |
commit | 4e867b5835dfc3433c88b5cfd9b1f1760dd8a446 (patch) | |
tree | 4d188cde9717628137c2a37111279b0707ae248e /editor/plugins/texture_region_editor_plugin.cpp | |
parent | bfa687ae55d840e45cfce1ff0126a795e05d54e3 (diff) | |
parent | 64fb22e17bafc3cf1d220b0338c15643c564a78a (diff) | |
download | redot-engine-4e867b5835dfc3433c88b5cfd9b1f1760dd8a446.tar.gz |
Merge pull request #84762 from timothyqiu/snap-mode
Fix texture region editor not selecting restored snap mode
Diffstat (limited to 'editor/plugins/texture_region_editor_plugin.cpp')
-rw-r--r-- | editor/plugins/texture_region_editor_plugin.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/texture_region_editor_plugin.cpp b/editor/plugins/texture_region_editor_plugin.cpp index f5bff6f3df..73de15631a 100644 --- a/editor/plugins/texture_region_editor_plugin.cpp +++ b/editor/plugins/texture_region_editor_plugin.cpp @@ -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); |