diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-01 14:58:10 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 14:58:10 +0200 |
commit | b77f0e83ca9251ef64c61d865930e15f8cbdafbe (patch) | |
tree | ffdd39bef9d7ada5b33f74cd5dadb5964a6aafb4 /scene/3d | |
parent | d883b90988c3b5f729bb7687e239f3095847dae5 (diff) | |
parent | 895ed2aed7baf1a6e32da39f7e2561973f500344 (diff) |
Merge pull request #38346 from jitspoe/master.fix_uninitialized_particle_param
Fix custom w component being uninitialized on CPU particles.
Diffstat (limited to 'scene/3d')
-rw-r--r-- | scene/3d/cpu_particles_3d.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/scene/3d/cpu_particles_3d.cpp b/scene/3d/cpu_particles_3d.cpp index 12c105b0f4..4c25f55f0b 100644 --- a/scene/3d/cpu_particles_3d.cpp +++ b/scene/3d/cpu_particles_3d.cpp @@ -69,6 +69,7 @@ void CPUParticles3D::set_amount(int p_amount) { for (int i = 0; i < p_amount; i++) { w[i].active = false; + w[i].custom[3] = 0.0; // Make sure w component isn't garbage data } } |