summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2018-09-07 22:59:55 +0200
committerHugo Locurcio <hugo.locurcio@hugo.pro>2018-09-07 22:59:55 +0200
commit3f87f9b79c1bdb0ee87c0617de10c6f89f7d2f41 (patch)
tree054907dcc0be97cd15f8af33ed9cd36bf17d0af3 /scene
parent4b6846a59d785af3bef6a29958387ed0ee0f6575 (diff)
Update Light properties in the inspector when dragging their gizmos
Diffstat (limited to 'scene')
-rw-r--r--scene/3d/light.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp
index 16164cf3bf..e2784c0252 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");
+ }
}
}