You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-10 13:00:37 +00:00
Merge pull request #25670 from aqnuep/bake_mode_affect_gi_prove
Disable GI probe capturing lights with bake mode disabled
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user