Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2009-07-18 15:39:50 +0400
committerJoshua Leung <aligorith@gmail.com>2009-07-18 15:39:50 +0400
commit3a32411f2b756851cf0211e2769ac4a31bbfa4c3 (patch)
treeebf201af04d8d05032fe7a8246751ad45aec445e /source/blender/editors/space_action/action_ops.c
parent178bc61dd3250507fda7107fbb11b02dc95f2e6b (diff)
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...
Diffstat (limited to 'source/blender/editors/space_action/action_ops.c')
-rw-r--r--source/blender/editors/space_action/action_ops.c68
1 files changed, 0 insertions, 68 deletions
diff --git a/source/blender/editors/space_action/action_ops.c b/source/blender/editors/space_action/action_ops.c
index c4dbe92985a..490f301e9e8 100644
--- a/source/blender/editors/space_action/action_ops.c
+++ b/source/blender/editors/space_action/action_ops.c
@@ -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 **********************************/