Skip to content

Commit

Permalink
feat: add clear scale and shrink/fatten to sketch menu for object and…
Browse files Browse the repository at this point in the history
… edit mode respectively
  • Loading branch information
tristan-hm committed Aug 6, 2022
1 parent 64c36bd commit 7be4562
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions interface/sketch_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,18 @@ def draw(self, context):

render_ops(ops.sketch_ops, layout, new_row=False, use_separator=True)

if context.mode == 'OBJECT':
layout.operator_context = 'INVOKE_DEFAULT'
layout.separator()

layout.operator("object.scale_clear", text="S » Clear Scale", icon='DRIVER_DISTANCE')

if context.mode == 'EDIT_MESH':
layout.operator_context = 'INVOKE_DEFAULT'
layout.separator()

layout.operator("transform.shrink_fatten", text="S » Shrink/Fatten", icon='FACESEL')


def register():
bpy.utils.register_class(ND_MT_sketch_menu)
Expand Down

0 comments on commit 7be4562

Please sign in to comment.