diff options
author | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-07-30 17:59:57 +0200 |
---|---|---|
committer | Gilles Roudiere <gilles.roudiere@gmail.com> | 2017-08-13 21:20:13 +0200 |
commit | 3264cea7ae65ca05b03460cfddefc30a2fa93e3c (patch) | |
tree | 4e1b4f8cda3115571b63bccbd3dc9c45f60b01d1 /editor/plugins/canvas_item_editor_plugin.h | |
parent | b329cb9c71ff43d013bd29574db251ddebf9f245 (diff) |
Add lines to make understandable when anchors are snapped
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 0263bc1083..dbae632b03 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); - Vector2 _anchor_snap(Vector2 anchor); + Vector2 _anchor_snap(const Vector2 anchor, bool *snapped_x = NULL, bool *snapped_y = NULL); Vector2 _anchor_to_position(Control *p_control, Vector2 anchor); Vector2 _position_to_anchor(Control *p_control, Vector2 position); |