1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-23 15:16:17 +00:00

Expose get_mesh() for NavigationPolygon Resources

Expose get_mesh() for NavigationPolygon Resources.

(cherry picked from commit 8bcce0ebb2)
This commit is contained in:
smix8
2022-06-02 09:25:42 +02:00
committed by Rémi Verschelde
parent 106bf9b793
commit c111d6b621
2 changed files with 7 additions and 0 deletions

View File

@@ -326,6 +326,7 @@ void NavigationPolygon::_bind_methods() {
ClassDB::bind_method(D_METHOD("get_polygon_count"), &NavigationPolygon::get_polygon_count);
ClassDB::bind_method(D_METHOD("get_polygon", "idx"), &NavigationPolygon::get_polygon);
ClassDB::bind_method(D_METHOD("clear_polygons"), &NavigationPolygon::clear_polygons);
ClassDB::bind_method(D_METHOD("get_mesh"), &NavigationPolygon::get_mesh);
ClassDB::bind_method(D_METHOD("add_outline", "outline"), &NavigationPolygon::add_outline);
ClassDB::bind_method(D_METHOD("add_outline_at_index", "outline", "index"), &NavigationPolygon::add_outline_at_index);