Skip to content

Commit

Permalink
feat: add solidify option to fast menu for non-manifold meshes
Browse files Browse the repository at this point in the history
  • Loading branch information
tristan-hm committed Jun 16, 2022
1 parent 0799e0b commit a14b819
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion interface/fast_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,6 +153,7 @@ def draw_single_object_predictions(self, context):
self.sketch = len(self.faces) >= 1 and is_planar(bm)
self.profile = len(self.faces) == 0 and len(self.edges) > 0
self.form = len(self.faces) > 1
self.manifold = all([len(edge.link_faces) == 2 for edge in self.edges])

bm.free()

Expand Down Expand Up @@ -181,7 +182,7 @@ def draw_single_object_predictions(self, context):
layout.operator("nd.cycle", icon=icons['nd.cycle'])
layout.separator()

if has_mod_solidify:
if not self.manifold or has_mod_solidify:
layout.operator("nd.solidify", icon=icons['nd.solidify'])

if has_mod_profile_extrude:
Expand Down

0 comments on commit a14b819

Please sign in to comment.