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

Don't warn in present() #479

Merged
merged 3 commits into from
Mar 23, 2024
Merged

Don't warn in present() #479

merged 3 commits into from
Mar 23, 2024

Conversation

almarklein
Copy link
Member

The warning was intended to help people who forgot to call get_current_texture(). But it looks like it does more harm then help, because when an exception happens in the draw function, the warning is printed below, making it easy to interpret that that is the error message. See e.g. pygfx/pygfx#682

@almarklein almarklein requested a review from Korijn as a code owner March 22, 2024 10:55
Korijn
Korijn previously approved these changes Mar 22, 2024
@Korijn
Copy link
Collaborator

Korijn commented Mar 22, 2024

You could also lower the logging level to debug. But anyway, I approve :)

@almarklein
Copy link
Member Author

Lol, silly how I did not think of that. I think making it a debug message is much better. I also added some context in the message.

@Korijn Korijn merged commit 570738c into main Mar 23, 2024
20 checks passed
@Korijn Korijn deleted the present branch March 23, 2024 22:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants