From e3b34810e313f41bef4225ec474baa7667cf7b5d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Thu, 22 Jun 2017 12:12:30 +0200 Subject: [PATCH] Fix tools=no build This house is falling apart when I'm not around... --- scene/2d/particles_2d.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp index 7c864c34300..cbecf00d52d 100644 --- a/scene/2d/particles_2d.cpp +++ b/scene/2d/particles_2d.cpp @@ -28,6 +28,7 @@ /* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */ /*************************************************************************/ #include "particles_2d.h" + #include "scene/3d/particles.h" #include "scene/scene_string_names.h" @@ -276,10 +277,12 @@ void Particles2D::_notification(int p_what) { VS::get_singleton()->canvas_item_add_particles(get_canvas_item(), particles, texture_rid, normal_rid, h_frames, v_frames); +#ifdef TOOLS_ENABLED if (get_tree()->is_editor_hint() && (this == get_tree()->get_edited_scene_root() || get_tree()->get_edited_scene_root()->is_a_parent_of(this))) { draw_rect(visibility_rect, Color(0, 0.7, 0.9, 0.4), false); } +#endif } if (p_what == NOTIFICATION_TRANSFORM_CHANGED) {