summaryrefslogtreecommitdiffstats
path: root/editor/plugins/polygon_2d_editor_plugin.h
diff options
context:
space:
mode:
authoraXu-AP <1621768+aXu-AP@users.noreply.github.com>2024-09-16 18:59:34 +0300
committeraXu-AP <1621768+aXu-AP@users.noreply.github.com>2024-09-17 19:43:42 +0300
commit2b303cb489681e714f81a24db06d46069d4fb052 (patch)
tree8571aff0ad3408b61683c334bfe10c67bc1a8d2e /editor/plugins/polygon_2d_editor_plugin.h
parenta75bacebef979a17b549c6577defbbfd2f7ef2e0 (diff)
downloadredot-engine-2b303cb489681e714f81a24db06d46069d4fb052.tar.gz
Open uv editor in point editing mode if no points
Open polygon editor in point editing mode if there's no polygon yet. Disable other modes until points are added.
Diffstat (limited to 'editor/plugins/polygon_2d_editor_plugin.h')
-rw-r--r--editor/plugins/polygon_2d_editor_plugin.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/plugins/polygon_2d_editor_plugin.h b/editor/plugins/polygon_2d_editor_plugin.h
index 164aa3eccc..a11e574efd 100644
--- a/editor/plugins/polygon_2d_editor_plugin.h
+++ b/editor/plugins/polygon_2d_editor_plugin.h
@@ -142,6 +142,7 @@ class Polygon2DEditor : public AbstractPolygon2DEditor {
void _cancel_editing();
void _update_polygon_editing_state();
+ void _update_available_modes();
void _center_view();
void _update_zoom_and_pan(bool p_zoom_at_center);
@@ -157,6 +158,7 @@ class Polygon2DEditor : public AbstractPolygon2DEditor {
void _set_snap_step_y(real_t p_val);
void _uv_edit_mode_select(int p_mode);
+ void _uv_edit_popup_show();
void _uv_edit_popup_hide();
void _bone_paint_selected(int p_index);