From 198508d839673cddd58d910d03fdc81924acf057 Mon Sep 17 00:00:00 2001 From: aresdevo Date: Wed, 5 Jan 2022 17:05:11 -0800 Subject: [PATCH] -Took away the anim-offset mask option on 3DView panel. -Added offset button to curve-tools expanded mode --- README.md | 4 +--- anim_offset/ui.py | 28 ++++++++++++++++------------ curve_tools/ui.py | 1 + 3 files changed, 18 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 733bdf4..d074b8d 100755 --- a/README.md +++ b/README.md @@ -19,9 +19,7 @@ > ### New on this version: > > **In General:** -> - Because there is a big change, there is an "info" panel with important information. It can be removed on the addon -> preference window. -> - Some settings were moved to the addon preferences. By been there your options will persist even after the Blender +> - Some settings were moved to the addon preferences. By being there your options will persist even after the Blender session is over. > - A new group of tools called **KeyManager** has been added to its own panel. > - Some panels can now be moved to the animation views headers. diff --git a/anim_offset/ui.py b/anim_offset/ui.py index fa5fcc3..425d450 100755 --- a/anim_offset/ui.py +++ b/anim_offset/ui.py @@ -49,22 +49,26 @@ def draw(self, context): row = layout.row(align=True) - if mask_in_use: - row.operator("anim.aide_delete_anim_offset_mask", text='Deactivate Mask', depress=True, icon='SELECT_SUBTRACT') - sub = row.row(align=True) - sub.active = True - op = sub.operator("anim.aide_add_anim_offset_mask", text='', icon='GREASEPENCIL') - op.sticky = True + if context.area.type != 'VIEW_3D': - else: - op = row.operator("anim.aide_add_anim_offset_mask", text='Mask', icon='SELECT_SUBTRACT') - op.sticky = False - sub = row.row(align=True) - sub.active = False + if mask_in_use: + row.operator("anim.aide_delete_anim_offset_mask", text='Deactivate Mask', depress=True, icon='SELECT_SUBTRACT') + sub = row.row(align=True) + sub.active = True + op = sub.operator("anim.aide_add_anim_offset_mask", text='', icon='GREASEPENCIL') + op.sticky = True + + else: + op = row.operator("anim.aide_add_anim_offset_mask", text='Mask', icon='SELECT_SUBTRACT') + op.sticky = False + sub = row.row(align=True) + sub.active = False + + sub.operator('anim.aide_anim_offset_settings', text='', icon='PREFERENCES', emboss=True) # row = layout.row(align=False) # row.active = status - sub.operator('anim.aide_anim_offset_settings', text='', icon='PREFERENCES', emboss=True) + # sub.operator('anim.aide_anim_offset_settings', text='', icon='PREFERENCES', emboss=True) # sub.popover(panel="ANIMAIDE_PT_preferences", text="") # if support.magnet_handlers in bpy.app.handlers.depsgraph_update_post: diff --git a/curve_tools/ui.py b/curve_tools/ui.py index 9438c05..ce871ea 100755 --- a/curve_tools/ui.py +++ b/curve_tools/ui.py @@ -143,6 +143,7 @@ def steps(context, layout, tool, expand): row.prop(tool, 'selector_3d', text='') else: row.prop(tool, 'selector', text='') + row.prop(tool, 'overshoot', text='', toggle=1, invert_checkbox=False, icon='SNAP_INCREMENT') def tool_button(context, layout_type, tool_type=''):