mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 14:13:10 +00:00
Fix snap mode selector sticking in texture region module
When changing snap mode in texture region plugin ticks was not updating. Issue fixed changing order of setting checked status and setting snap mode.
This commit is contained in:
parent
cefb2de339
commit
d766738991
@ -507,8 +507,8 @@ void TextureRegionEditor::_scroll_changed(float)
|
||||
|
||||
void TextureRegionEditor::_set_snap_mode(int p_mode)
|
||||
{
|
||||
snap_mode = p_mode;
|
||||
snap_mode_button->get_popup()->set_item_checked(snap_mode,false);
|
||||
snap_mode = p_mode;
|
||||
snap_mode_button->set_text(snap_mode_button->get_popup()->get_item_text(p_mode));
|
||||
snap_mode_button->get_popup()->set_item_checked(snap_mode,true);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user