Fix CPUParticles2D disappearance after amount change

This commit is contained in:
floppyhammer 2021-08-12 10:53:02 +08:00
parent 7188cb6012
commit 37230dbb1f

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
}