From de33ef2d1b94c1d3acc1cfa708665c99d0d0bb43 Mon Sep 17 00:00:00 2001 From: Daniel Rakos Date: Tue, 23 Apr 2019 11:36:36 +0200 Subject: 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. --- scene/3d/light.cpp | 1 + 1 file changed, 1 insertion(+) (limited to 'scene') 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 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 { -- cgit v1.2.3