Changeset View
Changeset View
Standalone View
Standalone View
source/blender/blenkernel/intern/action.c
| Context not available. | |||||
| #include "RNA_access.h" | #include "RNA_access.h" | ||||
| #include "CLG_log.h" | |||||
| static CLG_LogRef LOG = { "bke.action" }; | |||||
| /* *********************** NOTE ON POSE AND ACTION ********************** | /* *********************** NOTE ON POSE AND ACTION ********************** | ||||
| * | * | ||||
| * - Pose is the local (object level) component of armature. The current | * - Pose is the local (object level) component of armature. The current | ||||
| Context not available. | |||||
| bPoseChannel *pchanto, *pchanfrom; | bPoseChannel *pchanto, *pchanfrom; | ||||
| if (to == NULL || from == NULL) { | if (to == NULL || from == NULL) { | ||||
| printf("Pose copy error, pose to:%p from:%p\n", (void *)to, (void *)from); /* debug temp */ | CLOG_ERROR(&LOG, "Pose copy error, pose to:%p from:%p", (void *)to, (void *)from); /* debug temp */ | ||||
| return false; | return false; | ||||
| } | } | ||||
| if (to == from) { | if (to == from) { | ||||
| printf("BKE_pose_copy_result source and target are the same\n"); | CLOG_ERROR(&LOG, "source and target are the same"); | ||||
| return false; | return false; | ||||
| } | } | ||||
| for (pchanfrom = from->chanbase.first; pchanfrom; pchanfrom = pchanfrom->next) { | for (pchanfrom = from->chanbase.first; pchanfrom; pchanfrom = pchanfrom->next) { | ||||
| pchanto = BKE_pose_channel_find_name(to, pchanfrom->name); | pchanto = BKE_pose_channel_find_name(to, pchanfrom->name); | ||||
| if (pchanto != NULL) { | if (pchanto != NULL) { | ||||
| Context not available. | |||||