GDScript bindings for various missing Mesh functions.

Fixes #8041.

(cherry picked from commit f2a335d0c1)
This commit is contained in:
Ferenc Arn 2017-05-18 16:23:33 -05:00 committed by Rémi Verschelde
parent 1033250001
commit c2c1d2076c

View file

@ -919,10 +919,15 @@ void Mesh::_bind_methods() {
ObjectTypeDB::bind_method(_MD("surface_get_material:Material", "surf_idx"), &Mesh::surface_get_material);
ObjectTypeDB::bind_method(_MD("surface_set_name", "surf_idx", "name"), &Mesh::surface_set_name);
ObjectTypeDB::bind_method(_MD("surface_get_name", "surf_idx"), &Mesh::surface_get_name);
ObjectTypeDB::bind_method(_MD("create_trimesh_shape:Shape"), &Mesh::create_trimesh_shape);
ObjectTypeDB::bind_method(_MD("create_convex_shape:Shape"), &Mesh::create_convex_shape);
ObjectTypeDB::bind_method(_MD("create_outline:Mesh", "margin"), &Mesh::create_outline);
ObjectTypeDB::bind_method(_MD("center_geometry"), &Mesh::center_geometry);
ObjectTypeDB::set_method_flags(get_type_static(), _SCS("center_geometry"), METHOD_FLAGS_DEFAULT | METHOD_FLAG_EDITOR);
ObjectTypeDB::bind_method(_MD("regen_normalmaps"), &Mesh::regen_normalmaps);
ObjectTypeDB::set_method_flags(get_type_static(), _SCS("regen_normalmaps"), METHOD_FLAGS_DEFAULT | METHOD_FLAG_EDITOR);
ObjectTypeDB::bind_method(_MD("get_faces"), &Mesh::get_faces);
ObjectTypeDB::bind_method(_MD("generate_triangle_mesh:TriangleMesh"), &Mesh::generate_triangle_mesh);
ObjectTypeDB::bind_method(_MD("set_custom_aabb", "aabb"), &Mesh::set_custom_aabb);
ObjectTypeDB::bind_method(_MD("get_custom_aabb"), &Mesh::get_custom_aabb);