summaryrefslogtreecommitdiff
path: root/scene/2d/path_2d.cpp
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2020-01-10 07:18:13 +0100
committerGitHub <noreply@github.com>2020-01-10 07:18:13 +0100
commit9e09704ac5a207af309ad2529390a49f849ee77b (patch)
treedc8034fc276d71436ef611ff392a56297e64cadc /scene/2d/path_2d.cpp
parent76678b2609921f27f52c1a2e2bd62b8d2a27bb4b (diff)
parentb5251eb00f7daa339ad61923f16608432a902f46 (diff)
Merge pull request #32967 from groud/dont-compile-editor-only
Don't compile editor-only functions when tools=no
Diffstat (limited to 'scene/2d/path_2d.cpp')
-rw-r--r--scene/2d/path_2d.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/path_2d.cpp b/scene/2d/path_2d.cpp
index e6ae95af89..e9296b0fe7 100644
--- a/scene/2d/path_2d.cpp
+++ b/scene/2d/path_2d.cpp
@@ -37,6 +37,7 @@
#include "editor/editor_scale.h"
#endif
+#ifdef TOOLS_ENABLED
Rect2 Path2D::_edit_get_rect() const {
if (!curve.is_valid() || curve->get_point_count() == 0)
@@ -85,6 +86,7 @@ bool Path2D::_edit_is_selected_on_click(const Point2 &p_point, double p_toleranc
return false;
}
+#endif
void Path2D::_notification(int p_what) {