summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2017-06-22 12:12:30 +0200
committerRémi Verschelde <rverschelde@gmail.com>2017-06-22 12:12:30 +0200
commite3b34810e313f41bef4225ec474baa7667cf7b5d (patch)
tree2b575d46801cce84a699a8744285ece144bbeb5c
parentf27d2a3355b8c577fccd961d28dd6085887623c2 (diff)
Fix tools=no build
This house is falling apart when I'm not around...
-rw-r--r--scene/2d/particles_2d.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/scene/2d/particles_2d.cpp b/scene/2d/particles_2d.cpp
index 7c864c3430..cbecf00d52 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) {