2.5 - Removing quick test operator that I added by mistake
It was used to quickly test that the red-black tree was being built correctly, but was really an incomplete operator...
This commit is contained in:
@@ -57,71 +57,6 @@
|
||||
#include "WM_api.h"
|
||||
#include "WM_types.h"
|
||||
|
||||
|
||||
/* ------------- */
|
||||
|
||||
#include "BLI_dlrbTree.h"
|
||||
#include "ED_anim_api.h"
|
||||
#include "ED_keyframes_draw.h"
|
||||
#include "DNA_object_types.h"
|
||||
|
||||
static int act_drawtree_test_exec (bContext *C, wmOperator *op)
|
||||
{
|
||||
bAnimContext ac;
|
||||
bDopeSheet *ads;
|
||||
ListBase anim_data = {NULL, NULL};
|
||||
bAnimListElem *ale;
|
||||
int filter, items;
|
||||
|
||||
ANIM_animdata_get_context(C, &ac);
|
||||
ads= ac.data;
|
||||
|
||||
/* build list of channels to draw */
|
||||
filter= (ANIMFILTER_VISIBLE|ANIMFILTER_CHANNELS);
|
||||
items= ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, ac.datatype);
|
||||
|
||||
if (items) {
|
||||
for (ale= anim_data.first; ale; ale= ale->next) {
|
||||
AnimData *adt= BKE_animdata_from_id(ale->id);
|
||||
|
||||
|
||||
if (ale->type == ANIMTYPE_GROUP) {
|
||||
DLRBT_Tree keys;
|
||||
ActKeyColumn *ak;
|
||||
|
||||
BLI_dlrbTree_init(&keys);
|
||||
|
||||
agroup_to_keylist(adt, ale->data, &keys, NULL);
|
||||
|
||||
BLI_dlrbTree_linkedlist_sync(&keys);
|
||||
|
||||
printf("printing sorted list of object keyframes --------------- \n");
|
||||
for (ak= keys.first; ak; ak= ak->next) {
|
||||
printf("\t%p (%f) | L:%p R:%p P:%p \n", ak, ak->cfra, ak->left, ak->right, ak->parent);
|
||||
}
|
||||
|
||||
printf("printing tree ---------------- \n");
|
||||
for (ak= keys.root; ak; ak= ak->next) {
|
||||
printf("\t%p (%f) | L:%p R:%p P:%p \n", ak, ak->cfra, ak->left, ak->right, ak->parent);
|
||||
}
|
||||
|
||||
BLI_dlrbTree_free(&keys);
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
BLI_freelistN(&anim_data);
|
||||
}
|
||||
}
|
||||
|
||||
void ACT_OT_test (wmOperatorType *ot)
|
||||
{
|
||||
ot->idname= "ACT_OT_test";
|
||||
|
||||
ot->exec= act_drawtree_test_exec;
|
||||
}
|
||||
|
||||
/* ************************** registration - operator types **********************************/
|
||||
|
||||
void action_operatortypes(void)
|
||||
@@ -150,9 +85,6 @@ void action_operatortypes(void)
|
||||
|
||||
WM_operatortype_append(ACT_OT_previewrange_set);
|
||||
WM_operatortype_append(ACT_OT_view_all);
|
||||
|
||||
// test
|
||||
WM_operatortype_append(ACT_OT_test);
|
||||
}
|
||||
|
||||
/* ************************** registration - keymaps **********************************/
|
||||
|
||||
Reference in New Issue
Block a user