diff options
author | Campbell Barton <ideasman42@gmail.com> | 2021-01-24 07:25:57 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2021-01-24 07:25:57 +0300 |
commit | de9977260ccdfa1ec86ffb735c26aa0de766208f (patch) | |
tree | 0252dea72e383f6a7ff655e3ef85b9415152acc5 /source/blender/editors/armature/armature_add.c | |
parent | e77c65f73ce2ef329d84311795225585ba6c06db (diff) | |
parent | e9cd3d50a795065d442c1fd9d38ab1f082818729 (diff) |
Merge branch 'blender-v2.92-release'
Diffstat (limited to 'source/blender/editors/armature/armature_add.c')
-rw-r--r-- | source/blender/editors/armature/armature_add.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/armature/armature_add.c b/source/blender/editors/armature/armature_add.c index aa048912a76..e538c20df6c 100644 --- a/source/blender/editors/armature/armature_add.c +++ b/source/blender/editors/armature/armature_add.c @@ -517,7 +517,8 @@ static void updateDuplicateActionConstraintSettings(EditBone *dup_bone, /* See if there is any channels that uses this bone */ ListBase ani_curves; BLI_listbase_clear(&ani_curves); - if (BKE_fcurves_filter(&ani_curves, &act->curves, "pose.bones[", orig_bone->name)) { + if ((act != NULL) && + BKE_fcurves_filter(&ani_curves, &act->curves, "pose.bones[", orig_bone->name)) { /* Create a copy and mirror the animation */ for (LinkData *ld = ani_curves.first; ld; ld = ld->next) { FCurve *old_curve = ld->data; |