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

@@ -867,11 +867,11 @@ Camera3D::Camera3D() {
Camera3D::~Camera3D() {
ERR_FAIL_NULL(RenderingServer::get_singleton());
RenderingServer::get_singleton()->free(camera);
RenderingServer::get_singleton()->free_rid(camera);
#ifndef PHYSICS_3D_DISABLED
if (pyramid_shape.is_valid()) {
ERR_FAIL_NULL(PhysicsServer3D::get_singleton());
PhysicsServer3D::get_singleton()->free(pyramid_shape);
PhysicsServer3D::get_singleton()->free_rid(pyramid_shape);
}
#endif // PHYSICS_3D_DISABLED
}