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
No known key found for this signature in database
GPG key ID: 40A1750B977E56BF
158 changed files with 724 additions and 696 deletions

View file

@ -1595,7 +1595,7 @@ bool GodotPhysicsServer3D::generic_6dof_joint_get_flag(RID p_joint, Vector3::Axi
return generic_6dof_joint->get_flag(p_axis, p_flag);
}
void GodotPhysicsServer3D::free(RID p_rid) {
void GodotPhysicsServer3D::free_rid(RID p_rid) {
_update_shapes(); //just in case
if (shape_owner.owns(p_rid)) {
@ -1646,8 +1646,8 @@ void GodotPhysicsServer3D::free(RID p_rid) {
}
active_spaces.erase(space);
free(space->get_default_area()->get_self());
free(space->get_static_global_body());
free_rid(space->get_default_area()->get_self());
free_rid(space->get_static_global_body());
space_owner.free(p_rid);
memdelete(space);

View file

@ -371,7 +371,7 @@ public:
/* MISC */
virtual void free(RID p_rid) override;
virtual void free_rid(RID p_rid) override;
virtual void set_active(bool p_active) override;
virtual void init() override;