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

Warn if custom ambient light color is ignored due to sky contribution #53927

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

Calinou
Copy link
Member

@Calinou Calinou commented Oct 17, 2021

We can't use _validate_property() in Environment on a non-boolean value (it breaks the slider). Instead, emit a node configuration warning in WorldEnvironment. The downside is that the warning is only displayed when the scene is (re)loaded in the editor, since we can't listen for Environment resource changes.

This closes #47786. See also #39965 (comment).

@reduz
Copy link
Member

reduz commented Jul 31, 2022

I am not convinced this is a good idea. You may have set a placeholder color then added a sky, and ultimately you are forced to move the color back to zero to get rid of this warning.

I have been thinking for a while that it may be better to have a system where we can show warnings at property/resourrce level rather than just at node level.

@Calinou
Copy link
Member Author

Calinou commented Jul 31, 2022

I have been thinking for a while that it may be better to have a system where we can show warnings at property/resourrce level rather than just at node level.

Indeed, this is something I feel is missing right now 🙂

That said, we can resolve the original issue by implementing godotengine/godot-proposals#4524 too.

We can't use `_validate_property()` in Environment on a non-boolean
value (it breaks the slider). Instead, emit a node configuration
warning in WorldEnvironment. The downside is that the warning is
only displayed when the scene is (re)loaded in the editor, since
we can't listen for Environment resource changes.
@Calinou Calinou force-pushed the environment-sky-contribution-warn-if-ignored branch from 0f3b7fc to 4d7e566 Compare August 1, 2022 15:49
@YuriSizov YuriSizov modified the milestones: 4.0, 4.x Feb 9, 2023
@YuriSizov
Copy link
Contributor

I have been thinking for a while that it may be better to have a system where we can show warnings at property/resourrce level rather than just at node level.

This is implemented by #68420, btw.

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.

ambient_light_sky_contribution ignored
3 participants