Skip to content

Commit

Permalink
Actions with no keyframes are not shown in the config panel now.
Browse files Browse the repository at this point in the history
  • Loading branch information
emd4600 committed Nov 17, 2019
1 parent 472a179 commit 4e9c268
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions rw4_animation_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -306,6 +306,13 @@ def draw_item(self, context, layout, data, item, icon, active_data, active_prope
layout.alignment = 'CENTER'
layout.label(text=item.name, icon=custom_icon)

def filter_items(self, context, data, propname):
items = getattr(data, propname)
new_items = sorted(filter(lambda x: x.fcurves, items), key=lambda x: x.name)
filter_flags = [self.bitflag_filter_item if item in new_items else 0 for item in items]
filter_neworder = [new_items.index(item) if item in new_items else 0 for item in items]
return filter_flags, filter_neworder


class SPORE_OT_auto_handles(bpy.types.Operator):
bl_idname = "action.auto_rw_handle"
Expand Down

0 comments on commit 4e9c268

Please sign in to comment.