summaryrefslogtreecommitdiff
path: root/scene/3d
diff options
context:
space:
mode:
authorDaniel Rakos <daniel.rakos@rastergrid.com>2019-04-23 11:36:36 +0200
committerDaniel Rakos <daniel.rakos@rastergrid.com>2019-04-23 11:36:36 +0200
commitde33ef2d1b94c1d3acc1cfa708665c99d0d0bb43 (patch)
tree83dd80102a1f9aca89d68f3ce4165807c447a27f /scene/3d
parent4b6327fb302cff5998bf3d3405a645d02bddb42a (diff)
Disable GI probe capturing lights with bake mode disabled
The bake mode property of lights previously didn't affect GI probes. This change makes the GI probe ignore lights that have their bake mode set to disabled.
Diffstat (limited to 'scene/3d')
-rw-r--r--scene/3d/light.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/light.cpp b/scene/3d/light.cpp
index 3b514dab8c..80da7b6be3 100644
--- a/scene/3d/light.cpp
+++ b/scene/3d/light.cpp
@@ -152,6 +152,7 @@ PoolVector<Face3> Light::get_faces(uint32_t p_usage_flags) const {
void Light::set_bake_mode(BakeMode p_mode) {
bake_mode = p_mode;
+ VS::get_singleton()->light_set_use_gi(light, p_mode != BAKE_DISABLED);
}
Light::BakeMode Light::get_bake_mode() const {