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/polygon_path_finder.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/polygon_path_finder.cpp')
| -rw-r--r-- | scene/resources/polygon_path_finder.cpp | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/scene/resources/polygon_path_finder.cpp b/scene/resources/polygon_path_finder.cpp index 333c036965..6dac8a9779 100644 --- a/scene/resources/polygon_path_finder.cpp +++ b/scene/resources/polygon_path_finder.cpp @@ -618,17 +618,17 @@ float PolygonPathFinder::get_point_penalty(int p_point) const { void PolygonPathFinder::_bind_methods() { - ClassDB::bind_method(_MD("setup","points","connections"),&PolygonPathFinder::setup); - ClassDB::bind_method(_MD("find_path","from","to"),&PolygonPathFinder::find_path); - ClassDB::bind_method(_MD("get_intersections","from","to"),&PolygonPathFinder::get_intersections); - ClassDB::bind_method(_MD("get_closest_point","point"),&PolygonPathFinder::get_closest_point); - ClassDB::bind_method(_MD("is_point_inside","point"),&PolygonPathFinder::is_point_inside); - ClassDB::bind_method(_MD("set_point_penalty","idx","penalty"),&PolygonPathFinder::set_point_penalty); - ClassDB::bind_method(_MD("get_point_penalty","idx"),&PolygonPathFinder::get_point_penalty); - - ClassDB::bind_method(_MD("get_bounds"),&PolygonPathFinder::get_bounds); - ClassDB::bind_method(_MD("_set_data"),&PolygonPathFinder::_set_data); - ClassDB::bind_method(_MD("_get_data"),&PolygonPathFinder::_get_data); + ClassDB::bind_method(D_METHOD("setup","points","connections"),&PolygonPathFinder::setup); + ClassDB::bind_method(D_METHOD("find_path","from","to"),&PolygonPathFinder::find_path); + ClassDB::bind_method(D_METHOD("get_intersections","from","to"),&PolygonPathFinder::get_intersections); + ClassDB::bind_method(D_METHOD("get_closest_point","point"),&PolygonPathFinder::get_closest_point); + ClassDB::bind_method(D_METHOD("is_point_inside","point"),&PolygonPathFinder::is_point_inside); + ClassDB::bind_method(D_METHOD("set_point_penalty","idx","penalty"),&PolygonPathFinder::set_point_penalty); + ClassDB::bind_method(D_METHOD("get_point_penalty","idx"),&PolygonPathFinder::get_point_penalty); + + ClassDB::bind_method(D_METHOD("get_bounds"),&PolygonPathFinder::get_bounds); + ClassDB::bind_method(D_METHOD("_set_data"),&PolygonPathFinder::_set_data); + ClassDB::bind_method(D_METHOD("_get_data"),&PolygonPathFinder::_get_data); ADD_PROPERTY(PropertyInfo(Variant::DICTIONARY,"data",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_data","_get_data"); |