diff options
Diffstat (limited to 'source/blender/editors/armature/poselib.c')
-rw-r--r-- | source/blender/editors/armature/poselib.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/armature/poselib.c b/source/blender/editors/armature/poselib.c index 93611a30bd8..d0a99e4ad13 100644 --- a/source/blender/editors/armature/poselib.c +++ b/source/blender/editors/armature/poselib.c @@ -37,6 +37,7 @@ #include "BLI_arithb.h" #include "BLI_blenlib.h" #include "BLI_dynstr.h" +#include "BLI_dlrbTree.h" #include "DNA_listBase.h" #include "DNA_anim_types.h" @@ -216,7 +217,7 @@ bAction *poselib_validate (Object *ob) // TODO: operatorfy me! void poselib_validate_act (bAction *act) { - ListBase keys = {NULL, NULL}; + DLRBT_Tree keys = {NULL, NULL}; ActKeyColumn *ak; TimeMarker *marker, *markern; @@ -227,7 +228,9 @@ void poselib_validate_act (bAction *act) } /* determine which frames have keys */ + BLI_dlrbTree_init(&keys); action_to_keylist(NULL, act, &keys, NULL); + BLI_dlrbTree_linkedlist_sync(&keys); /* for each key, make sure there is a correspnding pose */ for (ak= keys.first; ak; ak= ak->next) { |