Properly free Skeleton RID in RenderingServer.free()
This commit is contained in:
parent
f3e6750a7e
commit
1aa61a877a
1 changed files with 3 additions and 0 deletions
|
@ -156,6 +156,9 @@ bool Utilities::free(RID p_rid) {
|
|||
} else if (GLES3::ParticlesStorage::get_singleton()->owns_particles_collision_instance(p_rid)) {
|
||||
GLES3::ParticlesStorage::get_singleton()->particles_collision_instance_free(p_rid);
|
||||
return true;
|
||||
} else if (GLES3::MeshStorage::get_singleton()->owns_skeleton(p_rid)) {
|
||||
GLES3::MeshStorage::get_singleton()->skeleton_free(p_rid);
|
||||
return true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue