Rename server "free" functions to "free_rid" to match exposed API
This commit is contained in:
@@ -1580,7 +1580,7 @@ bool JoltPhysicsServer3D::joint_is_disabled_collisions_between_bodies(RID p_join
|
||||
return joint->is_collision_disabled();
|
||||
}
|
||||
|
||||
void JoltPhysicsServer3D::free(RID p_rid) {
|
||||
void JoltPhysicsServer3D::free_rid(RID p_rid) {
|
||||
if (JoltShape3D *shape = shape_owner.get_or_null(p_rid)) {
|
||||
free_shape(shape);
|
||||
} else if (JoltBody3D *body = body_owner.get_or_null(p_rid)) {
|
||||
|
||||
@@ -411,7 +411,7 @@ public:
|
||||
virtual void joint_disable_collisions_between_bodies(RID p_joint, bool p_disable) override;
|
||||
virtual bool joint_is_disabled_collisions_between_bodies(RID p_joint) const override;
|
||||
|
||||
virtual void free(RID p_rid) override;
|
||||
virtual void free_rid(RID p_rid) override;
|
||||
|
||||
virtual void set_active(bool p_active) override;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user