diff --git a/interface/fast_menu.py b/interface/fast_menu.py index 266efda..b9de902 100644 --- a/interface/fast_menu.py +++ b/interface/fast_menu.py @@ -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" @@ -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()