diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-02-13 15:46:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-13 15:46:17 +0100 |
commit | ea7e8c8e8699c0a0da0731f59a2ee5dfbf34d378 (patch) | |
tree | 65ed57ff55cadd49b881e248e2f87331ca5eee28 /scene/3d/ray_cast.cpp | |
parent | f6859fd31b5c3cc1a112b7f77b3c1783df8c8919 (diff) | |
parent | 411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (diff) |
Merge pull request #7795 from hpvb/rename-md-macro
Rename the _MD macro to D_METHOD
Diffstat (limited to 'scene/3d/ray_cast.cpp')
-rw-r--r-- | scene/3d/ray_cast.cpp | 38 |
1 files changed, 19 insertions, 19 deletions
diff --git a/scene/3d/ray_cast.cpp b/scene/3d/ray_cast.cpp index 47c4417321..6be8b89441 100644 --- a/scene/3d/ray_cast.cpp +++ b/scene/3d/ray_cast.cpp @@ -210,33 +210,33 @@ void RayCast::clear_exceptions(){ void RayCast::_bind_methods() { - ClassDB::bind_method(_MD("set_enabled","enabled"),&RayCast::set_enabled); - ClassDB::bind_method(_MD("is_enabled"),&RayCast::is_enabled); + ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&RayCast::set_enabled); + ClassDB::bind_method(D_METHOD("is_enabled"),&RayCast::is_enabled); - ClassDB::bind_method(_MD("set_cast_to","local_point"),&RayCast::set_cast_to); - ClassDB::bind_method(_MD("get_cast_to"),&RayCast::get_cast_to); + ClassDB::bind_method(D_METHOD("set_cast_to","local_point"),&RayCast::set_cast_to); + ClassDB::bind_method(D_METHOD("get_cast_to"),&RayCast::get_cast_to); - ClassDB::bind_method(_MD("is_colliding"),&RayCast::is_colliding); - ClassDB::bind_method(_MD("force_raycast_update"),&RayCast::force_raycast_update); + ClassDB::bind_method(D_METHOD("is_colliding"),&RayCast::is_colliding); + ClassDB::bind_method(D_METHOD("force_raycast_update"),&RayCast::force_raycast_update); - ClassDB::bind_method(_MD("get_collider"),&RayCast::get_collider); - ClassDB::bind_method(_MD("get_collider_shape"),&RayCast::get_collider_shape); - ClassDB::bind_method(_MD("get_collision_point"),&RayCast::get_collision_point); - ClassDB::bind_method(_MD("get_collision_normal"),&RayCast::get_collision_normal); + ClassDB::bind_method(D_METHOD("get_collider"),&RayCast::get_collider); + ClassDB::bind_method(D_METHOD("get_collider_shape"),&RayCast::get_collider_shape); + ClassDB::bind_method(D_METHOD("get_collision_point"),&RayCast::get_collision_point); + ClassDB::bind_method(D_METHOD("get_collision_normal"),&RayCast::get_collision_normal); - ClassDB::bind_method(_MD("add_exception_rid","rid"),&RayCast::add_exception_rid); - ClassDB::bind_method(_MD("add_exception","node"),&RayCast::add_exception); + ClassDB::bind_method(D_METHOD("add_exception_rid","rid"),&RayCast::add_exception_rid); + ClassDB::bind_method(D_METHOD("add_exception","node"),&RayCast::add_exception); - ClassDB::bind_method(_MD("remove_exception_rid","rid"),&RayCast::remove_exception_rid); - ClassDB::bind_method(_MD("remove_exception","node"),&RayCast::remove_exception); + ClassDB::bind_method(D_METHOD("remove_exception_rid","rid"),&RayCast::remove_exception_rid); + ClassDB::bind_method(D_METHOD("remove_exception","node"),&RayCast::remove_exception); - ClassDB::bind_method(_MD("clear_exceptions"),&RayCast::clear_exceptions); + ClassDB::bind_method(D_METHOD("clear_exceptions"),&RayCast::clear_exceptions); - ClassDB::bind_method(_MD("set_layer_mask","mask"),&RayCast::set_layer_mask); - ClassDB::bind_method(_MD("get_layer_mask"),&RayCast::get_layer_mask); + ClassDB::bind_method(D_METHOD("set_layer_mask","mask"),&RayCast::set_layer_mask); + ClassDB::bind_method(D_METHOD("get_layer_mask"),&RayCast::get_layer_mask); - ClassDB::bind_method(_MD("set_type_mask","mask"),&RayCast::set_type_mask); - ClassDB::bind_method(_MD("get_type_mask"),&RayCast::get_type_mask); + ClassDB::bind_method(D_METHOD("set_type_mask","mask"),&RayCast::set_type_mask); + ClassDB::bind_method(D_METHOD("get_type_mask"),&RayCast::get_type_mask); ADD_PROPERTY(PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled"); ADD_PROPERTY(PropertyInfo(Variant::VECTOR3,"cast_to"),"set_cast_to","get_cast_to"); |