mirror of
https://github.com/godotengine/godot.git
synced 2024-11-26 22:23:04 +00:00
Particles: Properly initialize angular velocity parameter
Right now it would take garbage values when loading scenes, which could end up written to the scene file.
This commit is contained in:
parent
02319dceb2
commit
fae3df1204
@ -1392,9 +1392,9 @@ CPUParticles2D::CPUParticles2D() {
|
||||
set_spread(45);
|
||||
set_flatness(0);
|
||||
set_param(PARAM_INITIAL_LINEAR_VELOCITY, 1);
|
||||
set_param(PARAM_ANGULAR_VELOCITY, 0);
|
||||
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);
|
||||
|
@ -1460,6 +1460,7 @@ CPUParticles::CPUParticles() {
|
||||
set_spread(45);
|
||||
set_flatness(0);
|
||||
set_param(PARAM_INITIAL_LINEAR_VELOCITY, 1);
|
||||
set_param(PARAM_ANGULAR_VELOCITY, 0);
|
||||
set_param(PARAM_ORBIT_VELOCITY, 0);
|
||||
set_param(PARAM_LINEAR_ACCEL, 0);
|
||||
set_param(PARAM_RADIAL_ACCEL, 0);
|
||||
|
@ -1202,6 +1202,7 @@ ParticlesMaterial::ParticlesMaterial() :
|
||||
set_spread(45);
|
||||
set_flatness(0);
|
||||
set_param(PARAM_INITIAL_LINEAR_VELOCITY, 0);
|
||||
set_param(PARAM_ANGULAR_VELOCITY, 0);
|
||||
set_param(PARAM_ORBIT_VELOCITY, 0);
|
||||
set_param(PARAM_LINEAR_ACCEL, 0);
|
||||
set_param(PARAM_RADIAL_ACCEL, 0);
|
||||
|
Loading…
Reference in New Issue
Block a user