Revision: 21674
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=21674
Author:   aligorith
Date:     2009-07-18 13:39:50 +0200 (Sat, 18 Jul 2009)

Log Message:
-----------
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...

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/space_action/action_ops.c

Modified: 
branches/blender2.5/blender/source/blender/editors/space_action/action_ops.c
===================================================================
--- 
branches/blender2.5/blender/source/blender/editors/space_action/action_ops.c    
    2009-07-18 11:32:52 UTC (rev 21673)
+++ 
branches/blender2.5/blender/source/blender/editors/space_action/action_ops.c    
    2009-07-18 11:39:50 UTC (rev 21674)
@@ -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 @@
        
        WM_operatortype_append(ACT_OT_previewrange_set);
        WM_operatortype_append(ACT_OT_view_all);
-       
-       // test
-       WM_operatortype_append(ACT_OT_test);
 }
 
 /* ************************** registration - keymaps 
**********************************/


_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to