summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2023-11-11 23:06:24 +0100
committerRémi Verschelde <rverschelde@gmail.com>2023-11-11 23:06:24 +0100
commit4e867b5835dfc3433c88b5cfd9b1f1760dd8a446 (patch)
tree4d188cde9717628137c2a37111279b0707ae248e
parentbfa687ae55d840e45cfce1ff0126a795e05d54e3 (diff)
parent64fb22e17bafc3cf1d220b0338c15643c564a78a (diff)
downloadredot-engine-4e867b5835dfc3433c88b5cfd9b1f1760dd8a446.tar.gz
Merge pull request #84762 from timothyqiu/snap-mode
Fix texture region editor not selecting restored snap mode
-rw-r--r--editor/plugins/texture_region_editor_plugin.cpp2
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);