Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Courses
Scotty3D
Commits
f12b4efc
Commit
f12b4efc
authored
Jan 31, 2022
by
Sanjay Salem
Browse files
macOS fixes
parent
f44b0823
Changes
1
Show whitespace changes
Inline
Side-by-side
src/gui/model.cpp
View file @
f12b4efc
...
@@ -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
;
ref
2
=
my_mesh
->
bevel_face
(
face
);
ref
=
my_mesh
->
bevel_face
(
face
);
return
ref
2
;
return
ref
;
},
},
[
&
](
Halfedge_Mesh
::
VertexRef
vert
)
{
[
&
](
Halfedge_Mesh
::
VertexRef
vert
)
{
beveling
=
Bevel
::
vert
;
beveling
=
Bevel
::
vert
;
ref
2
=
my_mesh
->
extrude_vertex
(
vert
);
ref
=
my_mesh
->
extrude_vertex
(
vert
);
return
ref
2
;
return
ref
;
},
},
[
&
](
auto
)
->
std
::
optional
<
Halfedge_Mesh
::
ElementRef
>
{
return
std
::
nullopt
;
}},
[
&
](
auto
)
->
std
::
optional
<
Halfedge_Mesh
::
ElementRef
>
{
return
std
::
nullopt
;
}},
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment