Skip to content

Commit

Permalink
fix: ensure make edge/face operation is always available in edit mode…
Browse files Browse the repository at this point in the history
… fast menu
  • Loading branch information
tristan-hm committed Jul 1, 2022
1 parent 5a5dd78 commit cbeffac
Showing 1 changed file with 6 additions and 9 deletions.
15 changes: 6 additions & 9 deletions interface/fast_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,13 @@
from .. lib.addons import is_addon_enabled


keys = []
icons = build_icon_lookup_table()
SECTION_COUNT = 1
NO_SECTION_COUNT = 0

keys = []
icons = build_icon_lookup_table()


class ND_MT_fast_menu(bpy.types.Menu):
bl_label = "ND v%s — Fast (Predict)" % ('.'.join([str(v) for v in bl_info['version']]))
bl_idname = "ND_MT_fast_menu"
Expand Down Expand Up @@ -140,14 +142,9 @@ def draw_single_object_predictions(self, context):
layout.operator("nd.make_manifold", icon=icons['nd.make_manifold'])
made_prediction = True

if verts_selected:
self.draw_make_edge_face_ops(context)
made_prediction = True
self.draw_make_edge_face_ops(context)

if made_prediction:
return SECTION_COUNT

return NO_SECTION_COUNT
return SECTION_COUNT

if context.mode == 'OBJECT':
depsgraph = context.evaluated_depsgraph_get()
Expand Down

0 comments on commit cbeffac

Please sign in to comment.