summaryrefslogtreecommitdiff
path: root/scene
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-04-30 18:33:34 +0200
committerGitHub <noreply@github.com>2019-04-30 18:33:34 +0200
commitdd2cd06165670bb0d78bf4aa397935be15716e76 (patch)
tree87017115deb9dafbc9f6ee7e003e024f1d5f48cf /scene
parent06440408727cf30c2220b1a9225b14467302a8d0 (diff)
parentde33ef2d1b94c1d3acc1cfa708665c99d0d0bb43 (diff)
Merge pull request #25670 from aqnuep/bake_mode_affect_gi_prove
Disable GI probe capturing lights with bake mode disabled
Diffstat (limited to 'scene')
-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 ed533ee7a4..2377068ede 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 {