Commit f12b4efc authored by Sanjay Salem's avatar Sanjay Salem
Browse files

macOS fixes

parent f44b0823
...@@ -473,20 +473,20 @@ bool Model::begin_extrude(std::string& err) { ...@@ -473,20 +473,20 @@ bool Model::begin_extrude(std::string& err) {
auto sel = selected_element(); auto sel = selected_element();
if(!sel.has_value()) return false; if(!sel.has_value()) return false;
std::optional<Halfedge_Mesh::ElementRef> ref, ref2; std::optional<Halfedge_Mesh::ElementRef> ref;
Halfedge_Mesh::FaceRef f; Halfedge_Mesh::FaceRef f;
my_mesh->copy_to(old_mesh); my_mesh->copy_to(old_mesh);
auto new_obj = std::visit(overloaded{[&](Halfedge_Mesh::FaceRef face) { auto new_obj = std::visit(overloaded{[&](Halfedge_Mesh::FaceRef face) {
beveling = Bevel::face; beveling = Bevel::face;
ref2 = my_mesh->bevel_face(face); ref = my_mesh->bevel_face(face);
return ref2; return ref;
}, },
[&](Halfedge_Mesh::VertexRef vert) { [&](Halfedge_Mesh::VertexRef vert) {
beveling = Bevel::vert; beveling = Bevel::vert;
ref2 = my_mesh->extrude_vertex(vert); ref = my_mesh->extrude_vertex(vert);
return ref2; return ref;
}, },
[&](auto) -> std::optional<Halfedge_Mesh::ElementRef> { return std::nullopt; }}, [&](auto) -> std::optional<Halfedge_Mesh::ElementRef> { return std::nullopt; }},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment