diff options
author | Joshua Leung <aligorith@gmail.com> | 2011-03-24 06:19:30 +0300 |
---|---|---|
committer | Joshua Leung <aligorith@gmail.com> | 2011-03-24 06:19:30 +0300 |
commit | 3b0a42f898bc862cbb4e6ad04200b64dcf83e611 (patch) | |
tree | fac34f93ef54827d5e40951a05dbef8c331d8af6 /source/blender/editors/armature/poseSlide.c | |
parent | eef811a0954ad67a4667592c85cd95822d15e17c (diff) |
Reshuffled utility function to keyframe drawing API, removing some
duplicate code
Diffstat (limited to 'source/blender/editors/armature/poseSlide.c')
-rw-r--r-- | source/blender/editors/armature/poseSlide.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/source/blender/editors/armature/poseSlide.c b/source/blender/editors/armature/poseSlide.c index 680cd4b6430..6fdcb1039f1 100644 --- a/source/blender/editors/armature/poseSlide.c +++ b/source/blender/editors/armature/poseSlide.c @@ -874,34 +874,6 @@ typedef enum ePosePropagate_Termination { /* --------------------------------- */ -/* helper for pose_propagate_get_boneHoldEndFrame() - * Checks if ActKeyBlock should exist... - */ -// TODO: move to keyframes drawing API... -static short actkeyblock_is_valid (ActKeyBlock *ab, DLRBT_Tree *keys) -{ - ActKeyColumn *ak; - short startCurves, endCurves, totCurves; - - /* check that block is valid */ - if (ab == NULL) - return 0; - - /* find out how many curves occur at each keyframe */ - ak= (ActKeyColumn *)BLI_dlrbTree_search_exact(keys, compare_ak_cfraPtr, &ab->start); - startCurves = (ak)? ak->totcurve: 0; - - ak= (ActKeyColumn *)BLI_dlrbTree_search_exact(keys, compare_ak_cfraPtr, &ab->end); - endCurves = (ak)? ak->totcurve: 0; - - /* only draw keyblock if it appears in at all of the keyframes at lowest end */ - if (!startCurves && !endCurves) - return 0; - - totCurves = (startCurves>endCurves)? endCurves: startCurves; - return (ab->totcurve >= totCurves); -} - /* get frame on which the "hold" for the bone ends * XXX: this may not really work that well if a bone moves on some channels and not others * if this happens to be a major issue, scrap this, and just make this happen |