Merge pull request #7195 from bugstew/texture_region_snap_mode

Fix snap mode selector sticking in texture region module
This commit is contained in:
Rémi Verschelde 2016-11-28 15:31:42 +01:00 committed by GitHub
commit e297087cab

View file

@ -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);