Merge pull request #38346 from jitspoe/master.fix_uninitialized_particle_param

Fix custom w component being uninitialized on CPU particles.
This commit is contained in:
Rémi Verschelde 2020-05-01 14:58:10 +02:00 committed by GitHub
commit b77f0e83ca
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
}
}