From 37230dbb1f7752e900b5231a7f9ec9da94cf7484 Mon Sep 17 00:00:00 2001 From: floppyhammer Date: Thu, 12 Aug 2021 10:53:02 +0800 Subject: [PATCH] Fix CPUParticles2D disappearance after amount change --- servers/rendering/renderer_rd/renderer_storage_rd.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/servers/rendering/renderer_rd/renderer_storage_rd.cpp b/servers/rendering/renderer_rd/renderer_storage_rd.cpp index 5b845cbb88f..1c6b2bb7c17 100644 --- a/servers/rendering/renderer_rd/renderer_storage_rd.cpp +++ b/servers/rendering/renderer_rd/renderer_storage_rd.cpp @@ -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 }