diff options
author | Bastien Montagne <bastien@blender.org> | 2021-09-28 18:37:35 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2021-09-28 18:41:40 +0300 |
commit | 330a04d7c7928c213c121bedcab9dd77a16d106e (patch) | |
tree | cbe2318bb4fc459f9ae447df36a87d43a1e5af40 /source/blender/editors/include | |
parent | 53fa4801a0f8e03248d3f949cf4cd49792949698 (diff) |
Fix T91393: Duplicating an action with python crashes Blender.
Own mistake when making NLA overridable, instead of assuming things
about the ID owner of the animation data being processed, properly
return and use the one found by `ED_actedit_animdata_from_context`.
Diffstat (limited to 'source/blender/editors/include')
-rw-r--r-- | source/blender/editors/include/ED_anim_api.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/editors/include/ED_anim_api.h b/source/blender/editors/include/ED_anim_api.h index 6a0a42ee77b..e9601220f2e 100644 --- a/source/blender/editors/include/ED_anim_api.h +++ b/source/blender/editors/include/ED_anim_api.h @@ -861,7 +861,7 @@ void ED_operatormacros_action(void); /* XXX: Should we be doing these here, or at all? */ /* Action Editor - Action Management */ -struct AnimData *ED_actedit_animdata_from_context(struct bContext *C); +struct AnimData *ED_actedit_animdata_from_context(struct bContext *C, struct ID **r_adt_id_owner); void ED_animedit_unlink_action(struct bContext *C, struct ID *id, struct AnimData *adt, |