You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-19 14:31:59 +00:00
Rename RID's getornull() to get_or_null()
This commit is contained in:
@@ -122,7 +122,7 @@ int BulletPhysicsDirectSpaceState::intersect_shape(const RID &p_shape, const Tra
|
||||
return 0;
|
||||
}
|
||||
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->getornull(p_shape);
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->get_or_null(p_shape);
|
||||
ERR_FAIL_COND_V(!shape, 0);
|
||||
|
||||
btCollisionShape *btShape = shape->create_bt_shape(p_xform.basis.get_scale_abs(), p_margin);
|
||||
@@ -158,7 +158,7 @@ bool BulletPhysicsDirectSpaceState::cast_motion(const RID &p_shape, const Transf
|
||||
btVector3 bt_motion;
|
||||
G_TO_B(p_motion, bt_motion);
|
||||
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->getornull(p_shape);
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->get_or_null(p_shape);
|
||||
ERR_FAIL_COND_V(!shape, false);
|
||||
|
||||
btCollisionShape *btShape = shape->create_bt_shape(p_xform.basis.get_scale(), p_margin);
|
||||
@@ -219,7 +219,7 @@ bool BulletPhysicsDirectSpaceState::collide_shape(RID p_shape, const Transform3D
|
||||
return false;
|
||||
}
|
||||
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->getornull(p_shape);
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->get_or_null(p_shape);
|
||||
ERR_FAIL_COND_V(!shape, false);
|
||||
|
||||
btCollisionShape *btShape = shape->create_bt_shape(p_shape_xform.basis.get_scale_abs(), p_margin);
|
||||
@@ -251,7 +251,7 @@ bool BulletPhysicsDirectSpaceState::collide_shape(RID p_shape, const Transform3D
|
||||
}
|
||||
|
||||
bool BulletPhysicsDirectSpaceState::rest_info(RID p_shape, const Transform3D &p_shape_xform, real_t p_margin, ShapeRestInfo *r_info, const Set<RID> &p_exclude, uint32_t p_collision_mask, bool p_collide_with_bodies, bool p_collide_with_areas) {
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->getornull(p_shape);
|
||||
ShapeBullet *shape = space->get_physics_server()->get_shape_owner()->get_or_null(p_shape);
|
||||
ERR_FAIL_COND_V(!shape, false);
|
||||
|
||||
btCollisionShape *btShape = shape->create_bt_shape(p_shape_xform.basis.get_scale_abs(), p_margin);
|
||||
|
||||
Reference in New Issue
Block a user