Fix custom w component being uninitialized on CPU particles.

(cherry picked from commit 38085f2f6982c491935a434bb45e358dbebe1714)
(cherry picked from commit b9c280b73ff6a13ea490d2da0f2728bcef3038dc)
(cherry picked from commit 895ed2aed7)
This commit is contained in:
jitspoe 2020-02-06 06:06:05 -05:00 committed by Rémi Verschelde
parent d70cb49eef
commit e0be022b1e
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ void CPUParticles::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
}
}