summaryrefslogtreecommitdiff
path: root/scene/resources
diff options
context:
space:
mode:
authorRĂ©mi Verschelde <rverschelde@gmail.com>2017-05-20 09:48:36 +0200
committerGitHub <noreply@github.com>2017-05-20 09:48:36 +0200
commit869d6b1d3358c61e5030d17964138b65ea390824 (patch)
tree9dff3d65682d4825e44a4c40bdd31b5adafa1306 /scene/resources
parentafda71a2a6d8e87f1367c46991e563d0e0b5dfec (diff)
parentf2a335d0c1da0c2d7c5b7687c91db348ae49eb57 (diff)
Merge pull request #8818 from tagcup/mesh_methods
GDScript bindings for various missing Mesh functions.
Diffstat (limited to 'scene/resources')
-rw-r--r--scene/resources/mesh.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/scene/resources/mesh.cpp b/scene/resources/mesh.cpp
index ab3e143e60..4846d84b33 100644
--- a/scene/resources/mesh.cpp
+++ b/scene/resources/mesh.cpp
@@ -982,10 +982,15 @@ void Mesh::_bind_methods() {
ClassDB::bind_method(D_METHOD("surface_get_material:Material", "surf_idx"), &Mesh::surface_get_material);
ClassDB::bind_method(D_METHOD("surface_set_name", "surf_idx", "name"), &Mesh::surface_set_name);
ClassDB::bind_method(D_METHOD("surface_get_name", "surf_idx"), &Mesh::surface_get_name);
+ ClassDB::bind_method(D_METHOD("create_trimesh_shape:Shape"), &Mesh::create_trimesh_shape);
+ ClassDB::bind_method(D_METHOD("create_convex_shape:Shape"), &Mesh::create_convex_shape);
+ ClassDB::bind_method(D_METHOD("create_outline:Mesh", "margin"), &Mesh::create_outline);
ClassDB::bind_method(D_METHOD("center_geometry"), &Mesh::center_geometry);
ClassDB::set_method_flags(get_class_static(), _scs_create("center_geometry"), METHOD_FLAGS_DEFAULT | METHOD_FLAG_EDITOR);
ClassDB::bind_method(D_METHOD("regen_normalmaps"), &Mesh::regen_normalmaps);
ClassDB::set_method_flags(get_class_static(), _scs_create("regen_normalmaps"), METHOD_FLAGS_DEFAULT | METHOD_FLAG_EDITOR);
+ ClassDB::bind_method(D_METHOD("get_faces"), &Mesh::get_faces);
+ ClassDB::bind_method(D_METHOD("generate_triangle_mesh:TriangleMesh"), &Mesh::generate_triangle_mesh);
ClassDB::bind_method(D_METHOD("set_custom_aabb", "aabb"), &Mesh::set_custom_aabb);
ClassDB::bind_method(D_METHOD("get_custom_aabb"), &Mesh::get_custom_aabb);