Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2021-01-24 07:20:02 +0300
committerJeroen Bakker <jeroen@blender.org>2021-03-03 11:34:17 +0300
commit2833f2b9bfa2bc9610ec8782f349fdfa1763fc3f (patch)
tree671dfe4248e43b55aa4179dba704e421219ef398
parente954e565e1a83e2018278a4be73f5c7ecd22ec45 (diff)
Fix T84988: Armature symmetries crashes with action constraint
Action constraint without an action pointer set was crashing.
-rw-r--r--source/blender/editors/armature/armature_add.c3
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 d941f8ce95f..fec880219bd 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -516,7 +516,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 (list_find_data_fcurves(&ani_curves, &act->curves, "pose.bones[", orig_bone->name)) {
+ if ((act != NULL) &&
+ list_find_data_fcurves(&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;