diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2018-09-13 16:32:54 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-13 16:32:54 +0200 |
commit | 68f224a50483c39c6d13141c0ceb26549ad2579f (patch) | |
tree | e6a7f83ce7dd904efcb4662ef26728c3344fd631 | |
parent | bcc50de2d168c3184dc5c07bbfbea68236c32864 (diff) | |
parent | 3f87f9b79c1bdb0ee87c0617de10c6f89f7d2f41 (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.cpp | 7 |
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"); + } } } |