-
-
Notifications
You must be signed in to change notification settings - Fork 21.9k
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
Fix particle not re-randomizing every emission #103068
Conversation
@@ -41,6 +41,9 @@ | |||
void GPUParticles2D::set_emitting(bool p_emitting) { | |||
// Do not return even if `p_emitting == emitting` because `emitting` is just an approximation. | |||
|
|||
if (p_emitting && p_emitting != emitting && !use_fixed_seed) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (p_emitting && p_emitting != emitting && !use_fixed_seed) { | |
if (p_emitting && !emitting && !use_fixed_seed) { |
Looks like it could be simplified, right? The same is valid below.
576ffba
to
419e5c4
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. We want to get this into RC1 which we are building momentarily, so let's merge as is
if (time == 0) { | ||
_update_internal(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This logic is carried over from CPUParticles3D. It seems correct to me, so let's keep it
Thanks @QbieShay ❤️ |
Fixes #102885
Supersedes #103008
And probably creates a million problems for me down the line 🥲