mirror of
https://github.com/blender/blender
synced 2026-09-29 04:37:17 +03:00
Fix T84988: Armature symmetries crashes with action constraint
Action constraint without an action pointer set was crashing.
This commit is contained in:
parent
e954e565e1
commit
2833f2b9bf
1 changed files with 2 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue