mirror of
https://github.com/godotengine/godot.git
synced 2024-11-22 20:23:53 +00:00
Merge pull request #51540 from floppyhammer/fix-cpu-particles-2d-disappearance
Fix CPUParticles2D disappearance after amount change
This commit is contained in:
commit
c3041ffe98
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user