From 90b8a5b71ef79e0339826507c4b290f0c51b7cd2 Mon Sep 17 00:00:00 2001 From: Ignacio Etcheverry Date: Sat, 19 Aug 2017 01:02:56 +0200 Subject: Removes editor_hint from SceneTree --- scene/2d/light_occluder_2d.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'scene/2d/light_occluder_2d.cpp') diff --git a/scene/2d/light_occluder_2d.cpp b/scene/2d/light_occluder_2d.cpp index a1a8e7d9c..e926ca0fe 100644 --- a/scene/2d/light_occluder_2d.cpp +++ b/scene/2d/light_occluder_2d.cpp @@ -29,6 +29,8 @@ /*************************************************************************/ #include "light_occluder_2d.h" +#include "engine.h" + void OccluderPolygon2D::set_polygon(const PoolVector &p_polygon) { polygon = p_polygon; @@ -130,7 +132,7 @@ void LightOccluder2D::_notification(int p_what) { if (p_what == NOTIFICATION_DRAW) { - if (get_tree()->is_editor_hint()) { + if (Engine::get_singleton()->is_editor_hint()) { if (occluder_polygon.is_valid()) { -- cgit v1.2.3-70-g09d2