summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2019-01-22 07:45:00 +0100
committerGitHub <noreply@github.com>2019-01-22 07:45:00 +0100
commit34d0585618d848ea67d0773cffd45c8b2428d793 (patch)
tree6505de9378c86689af0cb753fe68959e98cb06be
parent0b0dba38c766a06f169fb492cc6f8c7c3e444de5 (diff)
parentaf92ade7283065f1daf72152c25a18f81ae50ee1 (diff)
Merge pull request #25208 from clayjohn/angular_velocity_cpu_2d
Properly initialize angular_velocity in cpuparticles2d
-rw-r--r--scene/2d/cpu_particles_2d.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/2d/cpu_particles_2d.cpp b/scene/2d/cpu_particles_2d.cpp
index 36b900bf82..7ace37aaf3 100644
--- a/scene/2d/cpu_particles_2d.cpp
+++ b/scene/2d/cpu_particles_2d.cpp
@@ -1378,6 +1378,7 @@ CPUParticles2D::CPUParticles2D() {
set_param(PARAM_INITIAL_LINEAR_VELOCITY, 1);
//set_param(PARAM_ORBIT_VELOCITY, 0);
set_param(PARAM_LINEAR_ACCEL, 0);
+ set_param(PARAM_ANGULAR_VELOCITY, 0);
set_param(PARAM_RADIAL_ACCEL, 0);
set_param(PARAM_TANGENTIAL_ACCEL, 0);
set_param(PARAM_DAMPING, 0);