From 2032cb25221bb4388b9875a49fd4c882ee400af8 Mon Sep 17 00:00:00 2001 From: Gilles Roudiere Date: Mon, 31 Jul 2017 18:49:46 +0200 Subject: Simplifies the canvas editor code --- editor/plugins/canvas_item_editor_plugin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'editor/plugins/canvas_item_editor_plugin.h') diff --git a/editor/plugins/canvas_item_editor_plugin.h b/editor/plugins/canvas_item_editor_plugin.h index dbae632b03..e6901b232d 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(const Vector2 anchor, bool *snapped_x = NULL, bool *snapped_y = NULL); + float _anchor_snap(const float anchor, bool *snapped = NULL); Vector2 _anchor_to_position(Control *p_control, Vector2 anchor); Vector2 _position_to_anchor(Control *p_control, Vector2 position); -- cgit v1.2.3