diff options
author | Campbell Barton <ideasman42@gmail.com> | 2013-10-01 17:28:59 +0400 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2013-10-01 17:28:59 +0400 |
commit | 9883641f46ebf4a9db407f125903a45ea617464e (patch) | |
tree | c5705d9e93d85a77396f1b84568bdf135cb9de0b /source/blender/blenkernel/BKE_action.h | |
parent | 4c3d9e358be04b6b2d8979ae9ef59e4b86f3bf13 (diff) |
add assert for bone renaming, to check if the chanhash is still valid.
Diffstat (limited to 'source/blender/blenkernel/BKE_action.h')
-rw-r--r-- | source/blender/blenkernel/BKE_action.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/blenkernel/BKE_action.h b/source/blender/blenkernel/BKE_action.h index d485632955d..698098d28c3 100644 --- a/source/blender/blenkernel/BKE_action.h +++ b/source/blender/blenkernel/BKE_action.h @@ -188,6 +188,10 @@ struct bPoseChannel *BKE_pose_channel_active(struct Object *ob); */ struct bPoseChannel *BKE_pose_channel_verify(struct bPose *pose, const char *name); +#ifndef NDEBUG +bool BKE_pose_channels_is_valid(const struct bPose *pose); +#endif + /* Copy the data from the action-pose (src) into the pose */ void extract_pose_from_pose(struct bPose *pose, const struct bPose *src); |