Skip to content

Commit

Permalink
feat: add cycle operator to fast menu for objects with boolean modifi…
Browse files Browse the repository at this point in the history
…ers present
  • Loading branch information
tristan-hm committed May 23, 2022
1 parent b00f11e commit a71896c
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions interface/fast_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,11 +145,12 @@ def draw_single_object_predictions(self, context):

has_mod_pe = False
has_mod_sol = False
has_mod_bool = False

for name in mod_names:
if "— ND PE" in name:
has_mod_pe = True
if "— ND SOL" in name:
has_mod_sol = True
has_mod_pe = bool("— ND PE" in name)
has_mod_sol = bool("— ND SOL" in name)
has_mod_bool = bool("— ND Bool" in name)

was_profile_extrude = has_mod_pe and not has_mod_sol

Expand All @@ -173,10 +174,17 @@ def draw_single_object_predictions(self, context):
return

if self.form:
if has_mod_bool:
layout.operator("nd.cycle", icon='LONGDISPLAY')
layout.separator()

layout.operator("nd.bevel", icon='MOD_BEVEL')
layout.operator("nd.weighted_normal_bevel", icon='MOD_BEVEL')
layout.separator()
layout.operator("nd.array_cubed", icon='PARTICLES')
layout.operator("nd.circular_array", icon='DRIVER_ROTATIONAL_DIFFERENCE')
layout.operator("nd.mirror", icon='MOD_MIRROR')
layout.separator()
layout.operator("nd.screw_head", icon='CANCEL')
layout.operator("nd.flare", text="Flare (Lighting)", icon='LIGHT_AREA')

Expand Down

0 comments on commit a71896c

Please sign in to comment.