Merge pull request #74555 from RedworkDE/cpuparticles3d-update-buffer-overrun

Fix buffer overrun in `CPUParticles3D` in `precision=double` builds
This commit is contained in:
Rémi Verschelde 2023-03-08 08:58:11 +01:00
commit 449e658583
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -1207,7 +1207,7 @@ void CPUParticles3D::_update_particle_data_buffer() {
ptr[10] = t.basis.rows[2][2];
ptr[11] = t.origin.z;
} else {
memset(ptr, 0, sizeof(Transform3D));
memset(ptr, 0, sizeof(float) * 12);
}
Color c = r[idx].color;