Fix T64533: Using "X-Axis Mirror" while posing with auto keyframe on does not keyframe the mirrored bone

Use an additional pose bone flag so we can keep track of mirrored bones that should be autokeyframed.

Reviewed By: Brecht

Differential Revision: https://developer.blender.org/D5033
This commit is contained in:
2019-06-06 15:52:52 +02:00
parent 3a20c056e8
commit 93ec2c94e5
3 changed files with 10 additions and 4 deletions

View File

@@ -819,6 +819,9 @@ static void pose_transform_mirror_update(Object *ob, PoseInitData_Mirror *pid)
pid++;
}
BKE_pchan_apply_mat4(pchan, pchan_mtx_final, false);
/* set flag to let autokeyframe know to keyframe the mirrred bone */
pchan->bone->flag |= BONE_TRANSFORM_MIRROR;
}
}
}