From b5251eb00f7daa339ad61923f16608432a902f46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gilles=20Roudi=C3=A8re?= Date: Mon, 21 Oct 2019 23:37:07 +0200 Subject: Don't compile editor-only function when tools=no --- scene/2d/canvas_item.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'scene/2d/canvas_item.h') diff --git a/scene/2d/canvas_item.h b/scene/2d/canvas_item.h index 82645051e8..8814d99edd 100644 --- a/scene/2d/canvas_item.h +++ b/scene/2d/canvas_item.h @@ -249,7 +249,7 @@ public: }; /* EDITOR */ - +#ifdef TOOLS_ENABLED // Select the node virtual bool _edit_is_selected_on_click(const Point2 &p_point, double p_tolerance) const; @@ -282,6 +282,7 @@ public: virtual Point2 _edit_get_pivot() const { return Point2(); }; virtual Transform2D _edit_get_transform() const; +#endif /* VISIBILITY */ -- cgit v1.2.3