diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-08-02 19:24:05 +0200 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-08-13 21:20:13 +0200 |
commit | f5ff7e9fa039e54de2e48bfb46239bbda497287a (patch) | |
tree | ff7094e5f5c7eb45da876242ad58ab4076e083f7 /editor/plugins/canvas_item_editor_plugin.h | |
parent | b73613e1eb66bf1807a4e106c87ebfaf6914813f (diff) |
Make anchors snap to each other
Diffstat (limited to 'editor/plugins/canvas_item_editor_plugin.h')
-rw-r--r-- | editor/plugins/canvas_item_editor_plugin.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h index 009329c271..c6b4289967 100644 --- a/editor/plugins/canvas_item_editor_plugin.h +++ b/editor/plugins/canvas_item_editor_plugin.h @@ -334,7 +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); - float _anchor_snap(const float anchor, bool *snapped = NULL); + float _anchor_snap(float anchor, bool *snapped = NULL, float p_opposite_anchor = -1); Vector2 _anchor_to_position(Control *p_control, Vector2 anchor); Vector2 _position_to_anchor(Control *p_control, Vector2 position); |