1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-17 14:11:06 +00:00

Improve reliability of 2D shape editor redrawing

This commit is contained in:
kobewi
2023-04-27 02:01:51 +02:00
parent 26fb911f79
commit d8e39912f8
2 changed files with 34 additions and 72 deletions

View File

@@ -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);