Revision: 26284
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=26284
Author:   aligorith
Date:     2010-01-26 11:29:10 +0100 (Tue, 26 Jan 2010)

Log Message:
-----------
Assorted Bugfixes:
* Adding new Keying Set paths didn't initialise the id-type setting. Make this 
default to Object
* Fixed bad poll callbacks for Graph Editor operators working on keyframes, 
which were expecting F-Curves to be selected too to be eligible for editing. 
This was often too restrictive, resulting in nothing happening.
* Fixed error with default property for Debug Redraw-Timer Operator not being 
set. However, this operator is currently still no use, since the info popups 
are now disabled.

Modified Paths:
--------------
    trunk/blender/source/blender/editors/animation/keyingsets.c
    trunk/blender/source/blender/editors/space_graph/graph_utils.c
    trunk/blender/source/blender/windowmanager/intern/wm_operators.c

Modified: trunk/blender/source/blender/editors/animation/keyingsets.c
===================================================================
--- trunk/blender/source/blender/editors/animation/keyingsets.c 2010-01-26 
10:14:39 UTC (rev 26283)
+++ trunk/blender/source/blender/editors/animation/keyingsets.c 2010-01-26 
10:29:10 UTC (rev 26284)
@@ -227,6 +227,7 @@
        ks->active_path= BLI_countlist(&ks->paths);
        
        ksp->groupmode= KSP_GROUP_KSNAME; // XXX?
+       ksp->idtype= ID_OB;
        
        return OPERATOR_FINISHED;
 }
@@ -320,10 +321,8 @@
                 */
                flag |= KEYINGSET_ABSOLUTE;
                
-               if (IS_AUTOKEY_FLAG(AUTOMATKEY)) 
-                       keyingflag |= INSERTKEY_MATRIX;
-               if (IS_AUTOKEY_FLAG(INSERTNEEDED)) 
-                       keyingflag |= INSERTKEY_NEEDED;
+               keyingflag |= ANIM_get_keyframing_flags(scene, 0);
+               
                if (IS_AUTOKEY_FLAG(XYZ2RGB)) 
                        keyingflag |= INSERTKEY_XYZ2RGB;
                        

Modified: trunk/blender/source/blender/editors/space_graph/graph_utils.c
===================================================================
--- trunk/blender/source/blender/editors/space_graph/graph_utils.c      
2010-01-26 10:14:39 UTC (rev 26283)
+++ trunk/blender/source/blender/editors/space_graph/graph_utils.c      
2010-01-26 10:29:10 UTC (rev 26284)
@@ -224,10 +224,10 @@
        if (ANIM_animdata_get_context(C, &ac) == 0)
                return 0;
        
-       /* loop over the editable (selected + editable) F-Curves, and see if 
they're suitable
+       /* loop over the editable F-Curves, and see if they're suitable
         * stopping on the first successful match
         */
-       filter= (ANIMFILTER_VISIBLE | ANIMFILTER_SEL | ANIMFILTER_FOREDIT | 
ANIMFILTER_CURVESONLY);
+       filter= (ANIMFILTER_VISIBLE | ANIMFILTER_FOREDIT | 
ANIMFILTER_CURVESONLY);
        items = ANIM_animdata_filter(&ac, &anim_data, filter, ac.data, 
ac.datatype);
        if (items == 0) 
                return 0;

Modified: trunk/blender/source/blender/windowmanager/intern/wm_operators.c
===================================================================
--- trunk/blender/source/blender/windowmanager/intern/wm_operators.c    
2010-01-26 10:14:39 UTC (rev 26283)
+++ trunk/blender/source/blender/windowmanager/intern/wm_operators.c    
2010-01-26 10:29:10 UTC (rev 26284)
@@ -2661,7 +2661,7 @@
        ot->exec= redraw_timer_exec;
        ot->poll= WM_operator_winactive;
        
-       RNA_def_enum(ot->srna, "type", prop_type_items, 0, "Type", "");
+       ot->prop= RNA_def_enum(ot->srna, "type", prop_type_items, 0, "Type", 
"");
        RNA_def_int(ot->srna, "iterations", 10, 1,INT_MAX, "Iterations", 
"Number of times to redraw", 1,1000);
 
 }


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

Reply via email to