summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <remi@verschelde.fr>2021-10-24 22:03:59 +0200
committerGitHub <noreply@github.com>2021-10-24 22:03:59 +0200
commitf5b85cd066378cb3f5ce793e0f5defe359296010 (patch)
treee95b8dbe73a6cfd9a8da2e121749965779585c58
parent6ccc3e4d87e62e6bc328b4beff8c89cdeec1aab9 (diff)
parent3ec927cfefaa33ca3862a73283cec8fa8d4f29db (diff)
Merge pull request #54193 from object71/fix-changing-particle-amount-is-not-reflected
Fix changing particle amount is not reflected
-rw-r--r--scene/3d/cpu_particles_3d.cpp1
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);