diff options
author | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-11-12 01:41:51 +0800 |
---|---|---|
committer | Haoyu Qiu <timothyqiu32@gmail.com> | 2023-11-12 01:41:51 +0800 |
commit | 64fb22e17bafc3cf1d220b0338c15643c564a78a (patch) | |
tree | 18cae8506c864747bb6766e18d935a01779dfdf2 | |
parent | e38686f85b768a451dc06324fe2471adc8665448 (diff) | |
download | redot-engine-64fb22e17bafc3cf1d220b0338c15643c564a78a.tar.gz |
Fix texture region editor not selecting restored snap mode
-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); |