diff options
| author | Rémi Verschelde <rverschelde@gmail.com> | 2019-04-30 18:33:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-30 18:33:34 +0200 |
| commit | dd2cd06165670bb0d78bf4aa397935be15716e76 (patch) | |
| tree | 87017115deb9dafbc9f6ee7e003e024f1d5f48cf /servers/visual/visual_server_scene.cpp | |
| parent | 06440408727cf30c2220b1a9225b14467302a8d0 (diff) | |
| parent | de33ef2d1b94c1d3acc1cfa708665c99d0d0bb43 (diff) | |
| download | redot-engine-dd2cd06165670bb0d78bf4aa397935be15716e76.tar.gz | |
Merge pull request #25670 from aqnuep/bake_mode_affect_gi_prove
Disable GI probe capturing lights with bake mode disabled
Diffstat (limited to 'servers/visual/visual_server_scene.cpp')
| -rw-r--r-- | servers/visual/visual_server_scene.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/servers/visual/visual_server_scene.cpp b/servers/visual/visual_server_scene.cpp index af580d6794..bce5eaf7b0 100644 --- a/servers/visual/visual_server_scene.cpp +++ b/servers/visual/visual_server_scene.cpp @@ -3117,6 +3117,9 @@ bool VisualServerScene::_check_gi_probe(Instance *p_gi_probe) { for (List<Instance *>::Element *E = p_gi_probe->scenario->directional_lights.front(); E; E = E->next()) { + if (!VSG::storage->light_get_use_gi(E->get()->base)) + continue; + InstanceGIProbeData::LightCache lc; lc.type = VSG::storage->light_get_type(E->get()->base); lc.color = VSG::storage->light_get_color(E->get()->base); @@ -3137,6 +3140,9 @@ bool VisualServerScene::_check_gi_probe(Instance *p_gi_probe) { for (Set<Instance *>::Element *E = probe_data->lights.front(); E; E = E->next()) { + if (!VSG::storage->light_get_use_gi(E->get()->base)) + continue; + InstanceGIProbeData::LightCache lc; lc.type = VSG::storage->light_get_type(E->get()->base); lc.color = VSG::storage->light_get_color(E->get()->base); |
