diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2020-01-02 13:59:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-02 13:59:10 +0100 |
commit | c0ece451e39b440b758cc8621fccff0a4f898f22 (patch) | |
tree | e4bef34b063c9ba58fe9e3104ca826d753dec4fc /scene/3d/light.cpp | |
parent | dbf907e0947be77def475973092b00f3436aee76 (diff) | |
parent | ac18665c8803916236cdf326b7b9a00951bf140d (diff) | |
download | redot-engine-c0ece451e39b440b758cc8621fccff0a4f898f22.tar.gz |
Merge pull request #34720 from Calinou/light-gizmo-color-by-light
Tint 3D light gizmos using the light's color
Diffstat (limited to 'scene/3d/light.cpp')
-rw-r--r-- | scene/3d/light.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp index bb6f3aab33..593d0b95b7 100644 --- a/scene/3d/light.cpp +++ b/scene/3d/light.cpp @@ -103,6 +103,8 @@ void Light::set_color(const Color &p_color) { color = p_color; VS::get_singleton()->light_set_color(light, p_color); + // The gizmo color depends on the light color, so update it. + update_gizmo(); } Color Light::get_color() const { |