Skip to content

Commit

Permalink
-Took away the anim-offset mask option on 3DView panel.
Browse files Browse the repository at this point in the history
-Added offset button to curve-tools expanded mode
  • Loading branch information
aresdevo committed Jan 6, 2022
1 parent d0463d4 commit 198508d
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 15 deletions.
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
28 changes: 16 additions & 12 deletions anim_offset/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
1 change: 1 addition & 0 deletions curve_tools/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -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=''):
Expand Down

0 comments on commit 198508d

Please sign in to comment.