You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-12-04 17:04:49 +00:00
Snap anchors when dragged, depending on the zoom level
This commit is contained in:
@@ -334,6 +334,7 @@ class CanvasItemEditor : public VBoxContainer {
|
||||
void _prepare_drag(const Point2 &p_click_pos);
|
||||
DragType _get_anchor_handle_drag_type(const Point2 &p_click, Vector2 &r_point);
|
||||
|
||||
Vector2 _anchor_snap(Vector2 anchor);
|
||||
Vector2 _anchor_to_position(Control *p_control, Vector2 anchor);
|
||||
Vector2 _position_to_anchor(Control *p_control, Vector2 position);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user