We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f1c0b5b commit 3973c0bCopy full SHA for 3973c0b
scene/2d/gpu_particles_2d.cpp
@@ -912,6 +912,8 @@ GPUParticles2D::GPUParticles2D() {
912
one_shot = false; // Needed so that set_emitting doesn't access uninitialized values
913
set_emitting(true);
914
set_one_shot(false);
915
+ set_use_fixed_seed(false);
916
+ set_seed(0);
917
set_amount(8);
918
set_amount_ratio(1.0);
919
set_lifetime(1);
scene/3d/gpu_particles_3d.cpp
@@ -92,10 +92,6 @@ void GPUParticles3D::set_one_shot(bool p_one_shot) {
92
93
if (is_emitting()) {
94
if (!one_shot) {
95
- if (!use_fixed_seed) {
96
- set_seed(Math::rand());
97
- }
98
-
99
RenderingServer::get_singleton()->particles_restart(particles);
100
}
101
0 commit comments