You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-12 13:20:55 +00:00
Merge pull request #41629 from JFonS/disable_baked_lights
Disable lights for objects with baked lighting
This commit is contained in:
@@ -3133,7 +3133,7 @@ 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))
|
||||
if (VSG::storage->light_get_bake_mode(E->get()->base) == VS::LightBakeMode::LIGHT_BAKE_DISABLED)
|
||||
continue;
|
||||
|
||||
InstanceGIProbeData::LightCache lc;
|
||||
@@ -3156,7 +3156,7 @@ 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))
|
||||
if (VSG::storage->light_get_bake_mode(E->get()->base) == VS::LightBakeMode::LIGHT_BAKE_DISABLED)
|
||||
continue;
|
||||
|
||||
InstanceGIProbeData::LightCache lc;
|
||||
|
||||
Reference in New Issue
Block a user