Browse Source

properly initialize angular_velocity in cpuparticles2d

clayjohn 6 years ago
parent
commit
af92ade728
1 changed files with 1 additions and 0 deletions
  1. 1 0
      scene/2d/cpu_particles_2d.cpp

+ 1 - 0
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);