TextureRegionEditor snap_mode fix.

(cherry picked from commit b578cf4da8)
This commit is contained in:
Saracen 2016-08-04 19:42:57 +01:00 committed by Rémi Verschelde
parent d55304c56f
commit dd97502788

View File

@ -503,8 +503,8 @@ void TextureRegionEditor::_scroll_changed(float)
void TextureRegionEditor::_set_snap_mode(int p_mode)
{
snap_mode_button->get_popup()->set_item_checked(snap_mode,false);
snap_mode = p_mode;
snap_mode_button->get_popup()->set_item_checked(snap_mode,false);
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);