From 3f87f9b79c1bdb0ee87c0617de10c6f89f7d2f41 Mon Sep 17 00:00:00 2001 From: Hugo Locurcio Date: Fri, 7 Sep 2018 22:59:55 +0200 Subject: [PATCH] Update Light properties in the inspector when dragging their gizmos --- scene/3d/light.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp index 16164cf3bf1..e2784c02526 100644 --- a/scene/3d/light.cpp +++ b/scene/3d/light.cpp @@ -48,6 +48,13 @@ void Light::set_param(Param p_param, float p_value) { if (p_param == PARAM_SPOT_ANGLE || p_param == PARAM_RANGE) { update_gizmo(); + + if (p_param == PARAM_SPOT_ANGLE) { + _change_notify("spot_angle"); + } else if (p_param == PARAM_RANGE) { + _change_notify("omni_range"); + _change_notify("spot_range"); + } } }