diff options
author | Ton Roosendaal <ton@blender.org> | 2013-01-24 15:21:40 +0400 |
---|---|---|
committer | Ton Roosendaal <ton@blender.org> | 2013-01-24 15:21:40 +0400 |
commit | 9592cade86b8ca15b72584f038508278434f8d89 (patch) | |
tree | 183cea1b3b0cee7734ffbfdf23c98e124ab36f8d /source/blender/blenkernel/intern/action.c | |
parent | 8a60c7dc7dd0c83c69a451efe1ab49e5db0cdb74 (diff) |
Armature rigging:
Added more clear warning print for cases when a Proxy cannot be resolved.
Diffstat (limited to 'source/blender/blenkernel/intern/action.c')
-rw-r--r-- | source/blender/blenkernel/intern/action.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/blenkernel/intern/action.c b/source/blender/blenkernel/intern/action.c index 63e12dfb99d..1aceca0bbd5 100644 --- a/source/blender/blenkernel/intern/action.c +++ b/source/blender/blenkernel/intern/action.c @@ -1118,18 +1118,18 @@ void BKE_pose_rest(bPose *pose) } /* both poses should be in sync */ -void BKE_pose_copy_result(bPose *to, bPose *from) +int BKE_pose_copy_result(bPose *to, bPose *from) { bPoseChannel *pchanto, *pchanfrom; if (to == NULL || from == NULL) { - printf("pose result copy error to:%p from:%p\n", (void *)to, (void *)from); /* debug temp */ - return; + printf("Pose copy error, pose to:%p from:%p\n", (void *)to, (void *)from); /* debug temp */ + return 0; } if (to == from) { printf("BKE_pose_copy_result source and target are the same\n"); - return; + return 0; } @@ -1153,6 +1153,7 @@ void BKE_pose_copy_result(bPose *to, bPose *from) pchanto->protectflag = pchanfrom->protectflag; } } + return 1; } /* For the calculation of the effects of an Action at the given frame on an object |