Properly free Skeleton RID in RenderingServer.free()

This commit is contained in:
clayjohn 2022-12-07 09:35:13 -08:00
parent f3e6750a7e
commit 1aa61a877a

View File

@ -156,6 +156,9 @@ bool Utilities::free(RID p_rid) {
} else if (GLES3::ParticlesStorage::get_singleton()->owns_particles_collision_instance(p_rid)) { } else if (GLES3::ParticlesStorage::get_singleton()->owns_particles_collision_instance(p_rid)) {
GLES3::ParticlesStorage::get_singleton()->particles_collision_instance_free(p_rid); GLES3::ParticlesStorage::get_singleton()->particles_collision_instance_free(p_rid);
return true; return true;
} else if (GLES3::MeshStorage::get_singleton()->owns_skeleton(p_rid)) {
GLES3::MeshStorage::get_singleton()->skeleton_free(p_rid);
return true;
} else { } else {
return false; return false;
} }