Commit: e9cd3d50a795065d442c1fd9d38ab1f082818729
Author: Campbell Barton
Date:   Sun Jan 24 15:20:02 2021 +1100
Branches: blender-v2.92-release
https://developer.blender.org/rBe9cd3d50a795065d442c1fd9d38ab1f082818729

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 f32d28c4a15..a0b8bf862d7 100644
--- a/source/blender/editors/armature/armature_add.c
+++ b/source/blender/editors/armature/armature_add.c
@@ -518,7 +518,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;

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to