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

Setting trail_lifetime of a particle below 0.1 will always result in an ERROR_COND #79091

Closed
MathiasBaumgartinger opened this issue Jul 6, 2023 · 0 comments · Fixed by #79270

Comments

@MathiasBaumgartinger
Copy link

Godot version

4.0.1.stable

System information

Manjaro Linux

Issue description

As the title mentions, setting the property trail_lifetime of GPUParticles3D below 0.1 will - as defined in servers/rendering/renderer_rd/storage_rd/particles_storage.cpp:424 - always result in the error message:

ERROR: Condition "p_length < 0.1" is true.

This is true for setting it from the editor and from script. Since this is a hardcoded value, would it not be more user-friendly to limit the p_length and warn the user if they try to set it below this threshold?

Steps to reproduce

Create a scene with GPUParticles3D and set the property trail_lifetime below 0.1 from editor or script.

Minimal reproduction project

Trivial

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants