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) {
auto sel = selected_element();
if(!sel.has_value()) return false;
std::optional<Halfedge_Mesh::ElementRef> ref, ref2;
std::optional<Halfedge_Mesh::ElementRef> ref;
Halfedge_Mesh::FaceRef f;
my_mesh->copy_to(old_mesh);
auto new_obj = std::visit(overloaded{[&](Halfedge_Mesh::FaceRef face) {
beveling = Bevel::face;
ref2 = my_mesh->bevel_face(face);
return ref2;
ref = my_mesh->bevel_face(face);
return ref;
},
[&](Halfedge_Mesh::VertexRef vert) {
beveling = Bevel::vert;
ref2 = my_mesh->extrude_vertex(vert);
return ref2;
ref = my_mesh->extrude_vertex(vert);
return ref;
},
[&](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