summaryrefslogtreecommitdiffstats
path: root/scene/3d/light.cpp
diff options
context:
space:
mode:
authorHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-01 00:52:20 +0100
committerHugo Locurcio <hugo.locurcio@hugo.pro>2020-01-01 00:54:25 +0100
commitac18665c8803916236cdf326b7b9a00951bf140d (patch)
treefe54a0c85eaf5c3ebadb540f3c47ac0da7758c0f /scene/3d/light.cpp
parent7fddf5eb7c6b6e58f891aaaa5b396f2b0cf616f8 (diff)
downloadredot-engine-ac18665c8803916236cdf326b7b9a00951bf140d.tar.gz
Tint 3D light gizmos using the light's color
This makes navigation more convenient in the 3D viewport, especially when using the unshaded display mode.
Diffstat (limited to 'scene/3d/light.cpp')
-rw-r--r--scene/3d/light.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp
index 85ee925248..06e7fbf5fd 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 {