TextureRegionEditor snap_mode fix.

This commit is contained in:
Saracen 2016-08-04 19:42:57 +01:00
parent 6ed5d48d0c
commit b578cf4da8

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