You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-09 12:50:35 +00:00
Fix CPUParticles2D disappearance after amount change
This commit is contained in:
@@ -3453,6 +3453,7 @@ void RendererStorageRD::multimesh_allocate_data(RID p_multimesh, int p_instances
|
|||||||
if (multimesh->buffer.is_valid()) {
|
if (multimesh->buffer.is_valid()) {
|
||||||
RD::get_singleton()->free(multimesh->buffer);
|
RD::get_singleton()->free(multimesh->buffer);
|
||||||
multimesh->buffer = RID();
|
multimesh->buffer = RID();
|
||||||
|
multimesh->uniform_set_2d = RID(); //cleared by dependency
|
||||||
multimesh->uniform_set_3d = RID(); //cleared by dependency
|
multimesh->uniform_set_3d = RID(); //cleared by dependency
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user