[Bf-blender-cvs] [2833f2b9bfa] blender-v2.83-release: Fix T84988: Armature symmetries crashes with action constraint

Campbell Barton noreply at git.blender.org
Wed Mar 3 09:35:36 CET 2021


Commit: 2833f2b9bfa2bc9610ec8782f349fdfa1763fc3f
Author: Campbell Barton
Date:   Sun Jan 24 15:20:02 2021 +1100
Branches: blender-v2.83-release
https://developer.blender.org/rB2833f2b9bfa2bc9610ec8782f349fdfa1763fc3f

Fix T84988: Armature symmetries crashes with action constraint

Action constraint without an action pointer set was crashing.

===================================================================

M	source/blender/editors/armature/armature_add.c

===================================================================

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;



More information about the Bf-blender-cvs mailing list