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

@ -1227,7 +1227,7 @@ String GodotNavigationServer3D::get_baking_navigation_mesh_state_msg(Ref<Navigat
#endif // _3D_DISABLED
}
COMMAND_1(free, RID, p_object) {
COMMAND_1(free_rid, RID, p_object) {
if (map_owner.owns(p_object)) {
NavMap3D *map = map_owner.get_or_null(p_object);

View file

@ -280,7 +280,7 @@ public:
virtual Vector<Vector3> simplify_path(const Vector<Vector3> &p_path, real_t p_epsilon) override;
public:
COMMAND_1(free, RID, p_object);
COMMAND_1(free_rid, RID, p_object);
virtual void set_active(bool p_active) override;

View file

@ -882,20 +882,20 @@ NavigationObstacle3DEditorPlugin::~NavigationObstacle3DEditorPlugin() {
ERR_FAIL_NULL(rs);
if (point_lines_instance_rid.is_valid()) {
rs->free(point_lines_instance_rid);
rs->free_rid(point_lines_instance_rid);
point_lines_instance_rid = RID();
}
if (point_lines_mesh_rid.is_valid()) {
rs->free(point_lines_mesh_rid);
rs->free_rid(point_lines_mesh_rid);
point_lines_mesh_rid = RID();
}
if (point_handles_instance_rid.is_valid()) {
rs->free(point_handles_instance_rid);
rs->free_rid(point_handles_instance_rid);
point_handles_instance_rid = RID();
}
if (point_handle_mesh_rid.is_valid()) {
rs->free(point_handle_mesh_rid);
rs->free_rid(point_handle_mesh_rid);
point_handle_mesh_rid = RID();
}
}