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/resources/capsule_shape.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/resources/capsule_shape.cpp')
| -rw-r--r-- | scene/resources/capsule_shape.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/scene/resources/capsule_shape.cpp b/scene/resources/capsule_shape.cpp index 75b885c4bf..bd30f009c4 100644 --- a/scene/resources/capsule_shape.cpp +++ b/scene/resources/capsule_shape.cpp @@ -107,10 +107,10 @@ float CapsuleShape::get_height() const { void CapsuleShape::_bind_methods() { - ClassDB::bind_method(_MD("set_radius","radius"),&CapsuleShape::set_radius); - ClassDB::bind_method(_MD("get_radius"),&CapsuleShape::get_radius); - ClassDB::bind_method(_MD("set_height","height"),&CapsuleShape::set_height); - ClassDB::bind_method(_MD("get_height"),&CapsuleShape::get_height); + ClassDB::bind_method(D_METHOD("set_radius","radius"),&CapsuleShape::set_radius); + ClassDB::bind_method(D_METHOD("get_radius"),&CapsuleShape::get_radius); + ClassDB::bind_method(D_METHOD("set_height","height"),&CapsuleShape::set_height); + ClassDB::bind_method(D_METHOD("get_height"),&CapsuleShape::get_height); ADD_PROPERTY( PropertyInfo(Variant::REAL,"radius",PROPERTY_HINT_RANGE,"0.01,4096,0.01"), "set_radius","get_radius") ; ADD_PROPERTY( PropertyInfo(Variant::REAL,"height",PROPERTY_HINT_RANGE,"0.01,4096,0.01"), "set_height","get_height") ; |