diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2023-04-25 14:24:38 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-25 14:24:38 +0200 |
commit | d78691d44fe6e4f38dce3a89164cdae688772031 (patch) | |
tree | 26b6162338b2be9844691916f60a9b0878b79c1c /scene/2d | |
parent | 90b4ca2e506c6a0d432770d59f62ae7eea565ad0 (diff) | |
parent | b5bd99d9e6062f5820e7e51cdaee8d799c85f701 (diff) |
Merge pull request #76405 from YuriSizov/4.0-cherrypicks
Cherry-picks for the 4.0 branch (future 4.0.3) - 2nd batch
Diffstat (limited to 'scene/2d')
-rw-r--r-- | scene/2d/cpu_particles_2d.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scene/2d/cpu_particles_2d.cpp b/scene/2d/cpu_particles_2d.cpp index 04c7555306..b86635b82b 100644 --- a/scene/2d/cpu_particles_2d.cpp +++ b/scene/2d/cpu_particles_2d.cpp @@ -722,12 +722,12 @@ void CPUParticles2D::_particles_process(double p_delta) { tex_linear_velocity = curve_parameters[PARAM_INITIAL_LINEAR_VELOCITY]->sample(0); }*/ - real_t tex_angle = 0.0; + real_t tex_angle = 1.0; if (curve_parameters[PARAM_ANGLE].is_valid()) { tex_angle = curve_parameters[PARAM_ANGLE]->sample(tv); } - real_t tex_anim_offset = 0.0; + real_t tex_anim_offset = 1.0; if (curve_parameters[PARAM_ANGLE].is_valid()) { tex_anim_offset = curve_parameters[PARAM_ANGLE]->sample(tv); } |