mirror of
https://github.com/godotengine/godot.git
synced 2025-12-08 06:09:55 +00:00
Rename server "free" functions to "free_rid" to match exposed API
This commit is contained in:
parent
4d231b5bf8
commit
9fbf5808a0
158 changed files with 724 additions and 696 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue