1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-04 12:00:25 +00:00

Fix Selection Game View

This commit is contained in:
Hilderin
2025-01-09 15:41:31 -05:00
parent 24d74510e5
commit 055b418e4d
9 changed files with 43 additions and 38 deletions

View File

@@ -835,6 +835,13 @@ Ref<ArrayMesh> MeshInstance3D::bake_mesh_from_current_skeleton_pose(Ref<ArrayMes
return bake_mesh;
}
Ref<TriangleMesh> MeshInstance3D::generate_triangle_mesh() const {
if (mesh.is_valid()) {
return mesh->generate_triangle_mesh();
}
return Ref<TriangleMesh>();
}
void MeshInstance3D::_bind_methods() {
ClassDB::bind_method(D_METHOD("set_mesh", "mesh"), &MeshInstance3D::set_mesh);
ClassDB::bind_method(D_METHOD("get_mesh"), &MeshInstance3D::get_mesh);