Skip to content

Commit

Permalink
feat: add solidify and profile extrude options to the fast menu when …
Browse files Browse the repository at this point in the history
…operators have been previously performed on the selected object
  • Loading branch information
tristan-hm committed May 29, 2022
1 parent a9a870d commit 84fa5a0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions interface/fast_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,12 @@ def draw_single_object_predictions(self, context):

was_profile_extrude = has_mod_pe and not has_mod_sol

if has_mod_sol:
layout.operator("nd.solidify", icon='MOD_SOLIDIFY')

if has_mod_pe:
layout.operator("nd.profile_extrude", icon='EMPTY_SINGLE_ARROW')

if "Bool —" in context.object.name:
layout.operator("nd.hydrate", icon='SHADING_RENDERED')
layout.operator("nd.swap_solver", text="Swap Solver (Booleans)", icon='CON_OBJECTSOLVER')
Expand All @@ -172,6 +178,7 @@ def draw_single_object_predictions(self, context):

if was_profile_extrude or self.sketch:
layout.operator("nd.solidify", icon='MOD_SOLIDIFY')
layout.separator()
layout.operator("nd.mirror", icon='MOD_MIRROR')
layout.operator("nd.screw", icon='MOD_SCREW')

Expand Down

0 comments on commit 84fa5a0

Please sign in to comment.