瀏覽代碼

Merge pull request #10322 from TwistedTwigleg/Navmesh_expose_create_from_mesh

Exposed create_from_mesh in Navmesh
Rémi Verschelde 8 年之前
父節點
當前提交
40f70d80ac
共有 1 個文件被更改,包括 2 次插入0 次删除
  1. 2 0
      scene/3d/navigation_mesh.cpp

+ 2 - 0
scene/3d/navigation_mesh.cpp

@@ -208,6 +208,8 @@ void NavigationMesh::_bind_methods() {
 	ClassDB::bind_method(D_METHOD("get_polygon", "idx"), &NavigationMesh::get_polygon);
 	ClassDB::bind_method(D_METHOD("clear_polygons"), &NavigationMesh::clear_polygons);
 
+	ClassDB::bind_method(D_METHOD("create_from_mesh", "mesh"), &NavigationMesh::create_from_mesh);
+
 	ClassDB::bind_method(D_METHOD("_set_polygons", "polygons"), &NavigationMesh::_set_polygons);
 	ClassDB::bind_method(D_METHOD("_get_polygons"), &NavigationMesh::_get_polygons);