summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2018-09-13 16:32:54 +0200
committerGitHub <noreply@github.com>2018-09-13 16:32:54 +0200
commit68f224a50483c39c6d13141c0ceb26549ad2579f (patch)
treee6a7f83ce7dd904efcb4662ef26728c3344fd631
parentbcc50de2d168c3184dc5c07bbfbea68236c32864 (diff)
parent3f87f9b79c1bdb0ee87c0617de10c6f89f7d2f41 (diff)
Merge pull request #21847 from Calinou/light-gizmo-update-inspector
Update Light properties in the inspector when dragging their gizmos
-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 80c2f005b6..d674958d33 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");
+ }
}
}