Rename server "free" functions to "free_rid" to match exposed API

This commit is contained in:
Aaron Franke
2025-06-05 00:49:35 -07:00
parent 4d231b5bf8
commit 9fbf5808a0
158 changed files with 724 additions and 696 deletions

View File

@@ -1219,7 +1219,7 @@ PhysicsServer2D::JointType GodotPhysicsServer2D::joint_get_type(RID p_joint) con
return joint->get_type();
}
void GodotPhysicsServer2D::free(RID p_rid) {
void GodotPhysicsServer2D::free_rid(RID p_rid) {
_update_shapes(); // just in case
if (shape_owner.owns(p_rid)) {
@@ -1264,7 +1264,7 @@ void GodotPhysicsServer2D::free(RID p_rid) {
}
active_spaces.erase(space);
free(space->get_default_area()->get_self());
free_rid(space->get_default_area()->get_self());
space_owner.free(p_rid);
memdelete(space);
} else if (joint_owner.owns(p_rid)) {