From 07c85d3cdfded97936d1fe69ddacecccd8f60c4e Mon Sep 17 00:00:00 2001 From: JFonS Date: Wed, 24 Oct 2018 16:47:32 +0200 Subject: [PATCH] Fix editor only lights (cherry picked from commit 99a097aff2565c38140cab5eca8bba73da8e1008) --- scene/3d/light.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp index 240bd631a13..752e5ddc59e 100644 --- a/scene/3d/light.cpp +++ b/scene/3d/light.cpp @@ -172,7 +172,8 @@ void Light::_update_visibility() { } #endif - //VS::get_singleton()->instance_light_set_enabled(get_instance(),is_visible_in_tree() && editor_ok); + VS::get_singleton()->instance_set_visible(get_instance(), is_visible_in_tree() && editor_ok); + _change_notify("geometry/visible"); }