Skip to content

Commit

Permalink
fix: improve F2 add-on/extension detection and subsequent Fast menu "…
Browse files Browse the repository at this point in the history
…Make Edge/Face" prediction
  • Loading branch information
tristan-hm committed Jul 20, 2024
1 parent 3680363 commit 2a4c2b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions interface/fast_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,8 +93,11 @@ def draw_make_edge_face_ops(self, context):
text = "F » Make Edge/Face"
icon = 'MOD_SIMPLIFY'

if is_addon_enabled("mesh_f2"):
layout.operator("mesh.f2", text=text, icon=icon)
if is_addon_enabled("bl_ext.blender_org.f2") or is_addon_enabled("mesh_f2"):
try:
layout.operator("mesh.f2", text=text, icon=icon)
except:
layout.operator("mesh.edge_face_add", text=text, icon=icon)
else:
layout.operator("mesh.edge_face_add", text=text, icon=icon)

Expand Down

0 comments on commit 2a4c2b8

Please sign in to comment.