diff options
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 13bcfaf4f32..af7384b8f21 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -67,6 +67,10 @@ #include "RNA_access.h" +#include "CLG_log.h" + +static CLG_LogRef LOG = {"bke.action"}; + /* *********************** NOTE ON POSE AND ACTION ********************** * * - Pose is the local (object level) component of armature. The current @@ -1378,16 +1382,15 @@ bool BKE_pose_copy_result(bPose *to, bPose *from) bPoseChannel *pchanto, *pchanfrom; 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; } 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; } - for (pchanfrom = from->chanbase.first; pchanfrom; pchanfrom = pchanfrom->next) { pchanto = BKE_pose_channel_find_name(to, pchanfrom->name); if (pchanto != NULL) { |