Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LightmapGI: Fix crash during baking when sky is null #100593

Merged
merged 1 commit into from
Dec 20, 2024

Conversation

Namey5
Copy link
Contributor

@Namey5 Namey5 commented Dec 19, 2024

LightmapGI was missing a null check on the baked Sky panorama in a specific code path (blending with ambient colour).

Might need extra discussion on what the expected behaviour here is as currently ambient light will not be factored in at all, but an error is printed to the console to warn the user and at least it shouldn't crash any more.

Fixes #100542

@Namey5 Namey5 requested a review from a team as a code owner December 19, 2024 05:26
@clayjohn clayjohn added this to the 4.4 milestone Dec 19, 2024
@akien-mga akien-mga changed the title LightmapGI: fix crash during baking when sky is null LightmapGI: Fix crash during baking when sky is null Dec 19, 2024
@Repiteo Repiteo merged commit e51ab56 into godotengine:master Dec 20, 2024
20 checks passed
@Repiteo
Copy link
Contributor

Repiteo commented Dec 20, 2024

Thanks!

@Namey5 Namey5 deleted the lightmapgi-null-sky-crash branch December 20, 2024 02:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

LightmapGI crashes when Sky resource is not set in a WorldEnvironment
3 participants