mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Fix particles resetting properties when emitting is toggled
This commit is contained in:
parent
88b9932ce1
commit
b93f6fa1ba
4 changed files with 4 additions and 4 deletions
|
|
@ -45,7 +45,7 @@ void CPUParticles2D::set_emitting(bool p_emitting) {
|
|||
return;
|
||||
}
|
||||
|
||||
if (p_emitting && !use_fixed_seed) {
|
||||
if (p_emitting && !use_fixed_seed && one_shot) {
|
||||
set_seed(Math::rand());
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -41,7 +41,7 @@
|
|||
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) {
|
||||
if (p_emitting && p_emitting != emitting && !use_fixed_seed && one_shot) {
|
||||
set_seed(Math::rand());
|
||||
}
|
||||
if (p_emitting && one_shot) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue