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
|
|
@ -106,7 +106,7 @@ void CSGShape3D::set_use_collision(bool p_enable) {
|
|||
set_collision_priority(collision_priority);
|
||||
_make_dirty(); //force update
|
||||
} else {
|
||||
PhysicsServer3D::get_singleton()->free(root_collision_instance);
|
||||
PhysicsServer3D::get_singleton()->free_rid(root_collision_instance);
|
||||
root_collision_instance = RID();
|
||||
root_collision_shape.unref();
|
||||
}
|
||||
|
|
@ -809,7 +809,7 @@ void CSGShape3D::_update_debug_collision_shape() {
|
|||
|
||||
void CSGShape3D::_clear_debug_collision_shape() {
|
||||
if (root_collision_debug_instance.is_valid()) {
|
||||
RS::get_singleton()->free(root_collision_debug_instance);
|
||||
RS::get_singleton()->free_rid(root_collision_debug_instance);
|
||||
root_collision_debug_instance = RID();
|
||||
}
|
||||
}
|
||||
|
|
@ -913,7 +913,7 @@ void CSGShape3D::_notification(int p_what) {
|
|||
|
||||
case NOTIFICATION_EXIT_TREE: {
|
||||
if (use_collision && is_root_shape() && root_collision_instance.is_valid()) {
|
||||
PhysicsServer3D::get_singleton()->free(root_collision_instance);
|
||||
PhysicsServer3D::get_singleton()->free_rid(root_collision_instance);
|
||||
root_collision_instance = RID();
|
||||
root_collision_shape.unref();
|
||||
_clear_debug_collision_shape();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue