diff --git a/source/blender/editors/armature/pose_utils.cc b/source/blender/editors/armature/pose_utils.cc index f95e0bac54b..554abe5a065 100644 --- a/source/blender/editors/armature/pose_utils.cc +++ b/source/blender/editors/armature/pose_utils.cc @@ -224,9 +224,13 @@ static void fcurves_to_pchan_links_get(ListBase &pfLinks, Object &ob, bPoseChann copy_v3_v3(pfl->scale_out, pchan.scale_out); /* Make copy of custom properties. */ - if (pchan.prop && (transFlags & ACT_TRANS_PROP)) { - pfl->oldprops = IDP_CopyProperty(pchan.prop); - pfl->old_system_properties = IDP_CopyProperty(pchan.system_properties); + if (transFlags & ACT_TRANS_PROP) { + if (pchan.prop) { + pfl->oldprops = IDP_CopyProperty(pchan.prop); + } + if (pchan.system_properties) { + pfl->old_system_properties = IDP_CopyProperty(pchan.system_properties); + } } }