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/multimesh_instance_2d.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'scene/2d/multimesh_instance_2d.h') diff --git a/scene/2d/multimesh_instance_2d.h b/scene/2d/multimesh_instance_2d.h index 253f4c77ca..c3f3e52920 100644 --- a/scene/2d/multimesh_instance_2d.h +++ b/scene/2d/multimesh_instance_2d.h @@ -47,6 +47,10 @@ protected: static void _bind_methods(); public: +#ifdef TOOLS_ENABLED + virtual Rect2 _edit_get_rect() const; +#endif + void set_multimesh(const Ref &p_multimesh); Ref get_multimesh() const; @@ -56,8 +60,6 @@ public: void set_normal_map(const Ref &p_texture); Ref get_normal_map() const; - virtual Rect2 _edit_get_rect() const; - MultiMeshInstance2D(); ~MultiMeshInstance2D(); }; -- cgit v1.2.3