diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-10 07:18:13 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-01-10 07:18:13 +0100 |
| commit | 9e09704ac5a207af309ad2529390a49f849ee77b (patch) | |
| tree | dc8034fc276d71436ef611ff392a56297e64cadc /scene/2d/multimesh_instance_2d.cpp | |
| parent | 76678b2609921f27f52c1a2e2bd62b8d2a27bb4b (diff) | |
| parent | b5251eb00f7daa339ad61923f16608432a902f46 (diff) | |
| download | redot-engine-9e09704ac5a207af309ad2529390a49f849ee77b.tar.gz | |
Merge pull request #32967 from groud/dont-compile-editor-only
Don't compile editor-only functions when tools=no
Diffstat (limited to 'scene/2d/multimesh_instance_2d.cpp')
| -rw-r--r-- | scene/2d/multimesh_instance_2d.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/2d/multimesh_instance_2d.cpp b/scene/2d/multimesh_instance_2d.cpp index 69d687229b..028459e778 100644 --- a/scene/2d/multimesh_instance_2d.cpp +++ b/scene/2d/multimesh_instance_2d.cpp @@ -94,6 +94,7 @@ Ref<Texture> MultiMeshInstance2D::get_normal_map() const { return normal_map; } +#ifdef TOOLS_ENABLED Rect2 MultiMeshInstance2D::_edit_get_rect() const { if (multimesh.is_valid()) { @@ -103,6 +104,7 @@ Rect2 MultiMeshInstance2D::_edit_get_rect() const { return Node2D::_edit_get_rect(); } +#endif MultiMeshInstance2D::MultiMeshInstance2D() { } |
