Skip to content

Commit

Permalink
fix(fcurve): do not assign FCurve.group to None
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippeCrassous committed Apr 15, 2021
1 parent 0da1af1 commit 1650193
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions mixer/blender_data/specifics.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,6 +468,18 @@ def _(bpy_struct: T.Struct, properties: ItemsView) -> ItemsView:
return _filter_properties(properties, filter_props)


@conditional_properties.register(T.FCurve) # type: ignore[no-redef]
def _(bpy_struct: T.Struct, properties: ItemsView) -> ItemsView:
if bpy_struct.group is not None:
return properties

# FCurve.group = None
# triggers noisy message
# ERROR: one of the ID's for the groups to assign to is invalid (ptr=0000028B55B0C038, val=0000000000000000)
filter_props = ["group"]
return _filter_properties(properties, filter_props)


@conditional_properties.register(T.EffectSequence) # type: ignore[no-redef]
@conditional_properties.register(T.ImageSequence)
@conditional_properties.register(T.MaskSequence)
Expand Down

0 comments on commit 1650193

Please sign in to comment.