ability to export scene to zip

This commit is contained in:
Juan Linietsky
2015-12-13 01:08:36 -03:00
parent 11eaf019b3
commit 709de124c1
6 changed files with 101 additions and 16 deletions

View File

@ -77,9 +77,14 @@ void OptionButton::_selected(int p_which) {
}
}
ERR_FAIL_COND(selid==-1);
if (selid==-1 && p_which>=0 && p_which<popup->get_item_count()) {
_select(p_which,true);
} else {
_select(selid,true);
ERR_FAIL_COND(selid==-1);
_select(selid,true);
}
}