diff options
author | RĂ©mi Verschelde <remi@verschelde.fr> | 2021-10-24 22:03:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-24 22:03:59 +0200 |
commit | f5b85cd066378cb3f5ce793e0f5defe359296010 (patch) | |
tree | e95b8dbe73a6cfd9a8da2e121749965779585c58 /scene | |
parent | 6ccc3e4d87e62e6bc328b4beff8c89cdeec1aab9 (diff) | |
parent | 3ec927cfefaa33ca3862a73283cec8fa8d4f29db (diff) |
Merge pull request #54193 from object71/fix-changing-particle-amount-is-not-reflected
Fix changing particle amount is not reflected
Diffstat (limited to 'scene')
-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 48ef41e015..55feb02fce 100644 --- a/scene/3d/cpu_particles_3d.cpp +++ b/scene/3d/cpu_particles_3d.cpp @@ -73,6 +73,7 @@ void CPUParticles3D::set_amount(int p_amount) { } particle_data.resize((12 + 4 + 4) * p_amount); + RS::get_singleton()->multimesh_set_visible_instances(multimesh, -1); RS::get_singleton()->multimesh_allocate_data(multimesh, p_amount, RS::MULTIMESH_TRANSFORM_3D, true, true); particle_order.resize(p_amount); |