Closed Phrogz closed 1 month ago
Describe the bug Writing an exporter extension, the animation_gather_fcurve_channel_target hook gets called twice per gathered action.
animation_gather_fcurve_channel_target
exp/animation/fcurves/channel_target.py:gather_fcurve_channel_target()
exp/animation/fcurves/channels.py:gather_animation_fcurves_channels()
Based on naming conventions alone, I think this is a copy/paste error, and the second one is supposed to be animation_gather_fcurve_channel…and possibly is intended to have additional useful information passed along?
animation_gather_fcurve_channel
To Reproduce
Write an exporter extension with:
def animation_gather_fcurve_channel_target(self, blender_object, bone_name, export_settings): print(f'####### animation_gather_fcurve_channel_target {blender_object.name}/bone"{bone_name}"') def animation_gather_fcurve_channel_sampler(self, blender_object, bone_name, export_settings): print(f'####### animation_gather_fcurve_channel_sampler {blender_object.name}/bone"{bone_name}"')
####### animation_gather_fcurve_channel_target needle/bone"None" ####### animation_gather_fcurve_channel_sampler needle/bone"None" ####### animation_gather_fcurve_channel_target needle/bone"None"
Expected behavior I think a distinct callback was intended for gather_animation_fcurves_channels.
gather_animation_fcurves_channels
Version
main
Confirmed
Describe the bug Writing an exporter extension, the
animation_gather_fcurve_channel_target
hook gets called twice per gathered action.exp/animation/fcurves/channel_target.py:gather_fcurve_channel_target()
exp/animation/fcurves/channels.py:gather_animation_fcurves_channels()
Based on naming conventions alone, I think this is a copy/paste error, and the second one is supposed to be
animation_gather_fcurve_channel
…and possibly is intended to have additional useful information passed along?To Reproduce
Write an exporter extension with:
Expected behavior I think a distinct callback was intended for
gather_animation_fcurves_channels
.Version
main
codebase.