summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Alexsander <michaelalexsander@protonmail.com>2020-10-29 16:45:17 -0300
committerMichael Alexsander <michaelalexsander@protonmail.com>2020-10-29 16:45:17 -0300
commit4b74019ca3f5e7dbdcd0d9875d4bb48e500b3a9c (patch)
tree4f37d32ecfe98e4697eef4cca7ee67f18814d414
parent5bb7c7c367c1df7257164053b85d01dcf1406f45 (diff)
Fix "Move Points" button sometimes not showing up on UV mode in the Polygon2D editor
-rw-r--r--editor/plugins/polygon_2d_editor_plugin.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/polygon_2d_editor_plugin.cpp b/editor/plugins/polygon_2d_editor_plugin.cpp
index ac90ee9570..23c358a797 100644
--- a/editor/plugins/polygon_2d_editor_plugin.cpp
+++ b/editor/plugins/polygon_2d_editor_plugin.cpp
@@ -199,7 +199,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();