Fix "Move Points" button sometimes not showing up on UV mode in the Polygon2D editor

(cherry picked from commit 4b74019ca3)
This commit is contained in:
Michael Alexsander 2020-10-29 16:45:17 -03:00 committed by Rémi Verschelde
parent 835d4535b7
commit 5e6af913de
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -209,7 +209,7 @@ void Polygon2DEditor::_uv_edit_mode_select(int p_mode) {
uv_button[UV_MODE_CREATE]->hide();
uv_button[UV_MODE_CREATE_INTERNAL]->hide();
uv_button[UV_MODE_REMOVE_INTERNAL]->hide();
for (int i = UV_MODE_MOVE; i <= UV_MODE_SCALE; i++) {
for (int i = UV_MODE_EDIT_POINT; i <= UV_MODE_SCALE; i++) {
uv_button[i]->show();
}
uv_button[UV_MODE_ADD_POLYGON]->hide();