summaryrefslogtreecommitdiffstats
path: root/scene/3d/path.cpp
diff options
context:
space:
mode:
authorHein-Pieter van Braam <hp@tmm.cx>2017-02-13 12:47:24 +0100
committerHein-Pieter van Braam <hp@tmm.cx>2017-02-13 12:50:02 +0100
commit411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291 (patch)
treea3c28058efb7a80faed23bff683fe0931859ed52 /scene/3d/path.cpp
parentbf64df4427836a4e7a5060ee11d75eea6da79b14 (diff)
downloadredot-engine-411ee71b4d2dd4dfb3c137b057e0cfcdb55d6291.tar.gz
Rename the _MD macro to D_METHOD
This new name also makes its purpose a little clearer This is a step towards fixing #56
Diffstat (limited to 'scene/3d/path.cpp')
-rw-r--r--scene/3d/path.cpp34
1 files changed, 17 insertions, 17 deletions
diff --git a/scene/3d/path.cpp b/scene/3d/path.cpp
index 840f779e5a..ead150e40b 100644
--- a/scene/3d/path.cpp
+++ b/scene/3d/path.cpp
@@ -80,9 +80,9 @@ Ref<Curve3D> Path::get_curve() const{
void Path::_bind_methods() {
- ClassDB::bind_method(_MD("set_curve","curve:Curve3D"),&Path::set_curve);
- ClassDB::bind_method(_MD("get_curve:Curve3D","curve"),&Path::get_curve);
- ClassDB::bind_method(_MD("_curve_changed"),&Path::_curve_changed);
+ ClassDB::bind_method(D_METHOD("set_curve","curve:Curve3D"),&Path::set_curve);
+ ClassDB::bind_method(D_METHOD("get_curve:Curve3D","curve"),&Path::get_curve);
+ ClassDB::bind_method(D_METHOD("_curve_changed"),&Path::_curve_changed);
ADD_PROPERTY( PropertyInfo( Variant::OBJECT, "curve", PROPERTY_HINT_RESOURCE_TYPE, "Curve3D"), "set_curve","get_curve");
}
@@ -257,26 +257,26 @@ void PathFollow::_get_property_list( List<PropertyInfo> *p_list) const{
void PathFollow::_bind_methods() {
- ClassDB::bind_method(_MD("set_offset","offset"),&PathFollow::set_offset);
- ClassDB::bind_method(_MD("get_offset"),&PathFollow::get_offset);
+ ClassDB::bind_method(D_METHOD("set_offset","offset"),&PathFollow::set_offset);
+ ClassDB::bind_method(D_METHOD("get_offset"),&PathFollow::get_offset);
- ClassDB::bind_method(_MD("set_h_offset","h_offset"),&PathFollow::set_h_offset);
- ClassDB::bind_method(_MD("get_h_offset"),&PathFollow::get_h_offset);
+ ClassDB::bind_method(D_METHOD("set_h_offset","h_offset"),&PathFollow::set_h_offset);
+ ClassDB::bind_method(D_METHOD("get_h_offset"),&PathFollow::get_h_offset);
- ClassDB::bind_method(_MD("set_v_offset","v_offset"),&PathFollow::set_v_offset);
- ClassDB::bind_method(_MD("get_v_offset"),&PathFollow::get_v_offset);
+ ClassDB::bind_method(D_METHOD("set_v_offset","v_offset"),&PathFollow::set_v_offset);
+ ClassDB::bind_method(D_METHOD("get_v_offset"),&PathFollow::get_v_offset);
- ClassDB::bind_method(_MD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset);
- ClassDB::bind_method(_MD("get_unit_offset"),&PathFollow::get_unit_offset);
+ ClassDB::bind_method(D_METHOD("set_unit_offset","unit_offset"),&PathFollow::set_unit_offset);
+ ClassDB::bind_method(D_METHOD("get_unit_offset"),&PathFollow::get_unit_offset);
- ClassDB::bind_method(_MD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode);
- ClassDB::bind_method(_MD("get_rotation_mode"),&PathFollow::get_rotation_mode);
+ ClassDB::bind_method(D_METHOD("set_rotation_mode","rotation_mode"),&PathFollow::set_rotation_mode);
+ ClassDB::bind_method(D_METHOD("get_rotation_mode"),&PathFollow::get_rotation_mode);
- ClassDB::bind_method(_MD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation);
- ClassDB::bind_method(_MD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation);
+ ClassDB::bind_method(D_METHOD("set_cubic_interpolation","enable"),&PathFollow::set_cubic_interpolation);
+ ClassDB::bind_method(D_METHOD("get_cubic_interpolation"),&PathFollow::get_cubic_interpolation);
- ClassDB::bind_method(_MD("set_loop","loop"),&PathFollow::set_loop);
- ClassDB::bind_method(_MD("has_loop"),&PathFollow::has_loop);
+ ClassDB::bind_method(D_METHOD("set_loop","loop"),&PathFollow::set_loop);
+ ClassDB::bind_method(D_METHOD("has_loop"),&PathFollow::has_loop);
BIND_CONSTANT( ROTATION_NONE );
BIND_CONSTANT( ROTATION_Y );