diff options
Diffstat (limited to 'scene/3d/navigation_mesh.cpp')
-rw-r--r-- | scene/3d/navigation_mesh.cpp | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/scene/3d/navigation_mesh.cpp b/scene/3d/navigation_mesh.cpp index 23f347ff3d..8efb9bb333 100644 --- a/scene/3d/navigation_mesh.cpp +++ b/scene/3d/navigation_mesh.cpp @@ -208,16 +208,16 @@ Ref<Mesh> NavigationMesh::get_debug_mesh() { void NavigationMesh::_bind_methods() { - ClassDB::bind_method(_MD("set_vertices","vertices"),&NavigationMesh::set_vertices); - ClassDB::bind_method(_MD("get_vertices"),&NavigationMesh::get_vertices); + ClassDB::bind_method(D_METHOD("set_vertices","vertices"),&NavigationMesh::set_vertices); + ClassDB::bind_method(D_METHOD("get_vertices"),&NavigationMesh::get_vertices); - ClassDB::bind_method(_MD("add_polygon","polygon"),&NavigationMesh::add_polygon); - ClassDB::bind_method(_MD("get_polygon_count"),&NavigationMesh::get_polygon_count); - ClassDB::bind_method(_MD("get_polygon","idx"),&NavigationMesh::get_polygon); - ClassDB::bind_method(_MD("clear_polygons"),&NavigationMesh::clear_polygons); + ClassDB::bind_method(D_METHOD("add_polygon","polygon"),&NavigationMesh::add_polygon); + ClassDB::bind_method(D_METHOD("get_polygon_count"),&NavigationMesh::get_polygon_count); + ClassDB::bind_method(D_METHOD("get_polygon","idx"),&NavigationMesh::get_polygon); + ClassDB::bind_method(D_METHOD("clear_polygons"),&NavigationMesh::clear_polygons); - ClassDB::bind_method(_MD("_set_polygons","polygons"),&NavigationMesh::_set_polygons); - ClassDB::bind_method(_MD("_get_polygons"),&NavigationMesh::_get_polygons); + ClassDB::bind_method(D_METHOD("_set_polygons","polygons"),&NavigationMesh::_set_polygons); + ClassDB::bind_method(D_METHOD("_get_polygons"),&NavigationMesh::_get_polygons); ADD_PROPERTY(PropertyInfo(Variant::POOL_VECTOR3_ARRAY,"vertices",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"set_vertices","get_vertices"); ADD_PROPERTY(PropertyInfo(Variant::ARRAY,"polygons",PROPERTY_HINT_NONE,"",PROPERTY_USAGE_NOEDITOR),"_set_polygons","_get_polygons"); @@ -394,11 +394,11 @@ String NavigationMeshInstance::get_configuration_warning() const { void NavigationMeshInstance::_bind_methods() { - ClassDB::bind_method(_MD("set_navigation_mesh","navmesh"),&NavigationMeshInstance::set_navigation_mesh); - ClassDB::bind_method(_MD("get_navigation_mesh"),&NavigationMeshInstance::get_navigation_mesh); + ClassDB::bind_method(D_METHOD("set_navigation_mesh","navmesh"),&NavigationMeshInstance::set_navigation_mesh); + ClassDB::bind_method(D_METHOD("get_navigation_mesh"),&NavigationMeshInstance::get_navigation_mesh); - ClassDB::bind_method(_MD("set_enabled","enabled"),&NavigationMeshInstance::set_enabled); - ClassDB::bind_method(_MD("is_enabled"),&NavigationMeshInstance::is_enabled); + ClassDB::bind_method(D_METHOD("set_enabled","enabled"),&NavigationMeshInstance::set_enabled); + ClassDB::bind_method(D_METHOD("is_enabled"),&NavigationMeshInstance::is_enabled); ADD_PROPERTY( PropertyInfo(Variant::OBJECT,"navmesh",PROPERTY_HINT_RESOURCE_TYPE,"NavigationMesh"),"set_navigation_mesh","get_navigation_mesh"); ADD_PROPERTY( PropertyInfo(Variant::BOOL,"enabled"),"set_enabled","is_enabled"); |