Merge pull request #51540 from floppyhammer/fix-cpu-particles-2d-disappearance

Fix CPUParticles2D disappearance after amount change
This commit is contained in:
Rémi Verschelde 2021-08-12 08:12:22 +02:00 committed by GitHub
commit c3041ffe98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3453,6 +3453,7 @@ void RendererStorageRD::multimesh_allocate_data(RID p_multimesh, int p_instances
if (multimesh->buffer.is_valid()) {
RD::get_singleton()->free(multimesh->buffer);
multimesh->buffer = RID();
multimesh->uniform_set_2d = RID(); //cleared by dependency
multimesh->uniform_set_3d = RID(); //cleared by dependency
}