diff options
Diffstat (limited to 'editor/plugins/collision_shape_2d_editor_plugin.h')
-rw-r--r-- | editor/plugins/collision_shape_2d_editor_plugin.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/editor/plugins/collision_shape_2d_editor_plugin.h b/editor/plugins/collision_shape_2d_editor_plugin.h index 9c37b6cf9d..749245ae28 100644 --- a/editor/plugins/collision_shape_2d_editor_plugin.h +++ b/editor/plugins/collision_shape_2d_editor_plugin.h @@ -74,16 +74,17 @@ class CollisionShape2DEditor : public Control { Vector2 original_point; Point2 last_point; + Ref<Shape2D> current_shape; + Variant get_handle_value(int idx) const; void set_handle(int idx, Point2 &p_point); void commit_handle(int idx, Variant &p_org); - void _get_current_shape_type(); + void _shape_changed(); protected: void _notification(int p_what); void _node_removed(Node *p_node); - static void _bind_methods(); public: bool forward_canvas_gui_input(const Ref<InputEvent> &p_event); |