Revision: 19050
          
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=19050
Author:   aligorith
Date:     2009-02-20 06:59:15 +0100 (Fri, 20 Feb 2009)

Log Message:
-----------
Aha! I've finally found those elusive RNA API functions that prevented the 
ANIM_OT_keyingset_add_destination() operator from being able to be used.

Modified Paths:
--------------
    branches/blender2.5/blender/source/blender/editors/animation/keyframing.c

Modified: 
branches/blender2.5/blender/source/blender/editors/animation/keyframing.c
===================================================================
--- branches/blender2.5/blender/source/blender/editors/animation/keyframing.c   
2009-02-20 05:42:44 UTC (rev 19049)
+++ branches/blender2.5/blender/source/blender/editors/animation/keyframing.c   
2009-02-20 05:59:15 UTC (rev 19050)
@@ -883,7 +883,7 @@
 
 static int keyingset_add_destination_exec (bContext *C, wmOperator *op)
 {
-       //PointerRNA *ptr;
+       PointerRNA ptr;
        KeyingSet *ks= NULL;
        ID *id= NULL;
        char rna_path[256], group_name[64]; // xxx
@@ -891,13 +891,14 @@
        int array_index=0;
        
        /* get settings from operator properties */
-#if 0 // XXX - why can't we have something like this in the RNA-access API?
-       if ( (ptr = RNA_property_pointer_get(op->ptr, "keyingset")) )
-               ks= (KeyingSet *)ptr->data;
-       if ( (ptr = RNA_property_pointer_get(op->ptr, "id")) )
-               id= (ID *)ptr->id;
-#endif 
+       ptr = RNA_pointer_get(op->ptr, "keyingset");
+       if (ptr.data) 
+               ks= (KeyingSet *)ptr.data;
        
+       ptr = RNA_pointer_get(op->ptr, "id");
+       if (ptr.data)
+               id= (ID *)ptr.data;
+       
        groupmode= RNA_enum_get(op->ptr, "grouping_method");
        RNA_string_get(op->ptr, "group_name", group_name);              
        


_______________________________________________
Bf-blender-cvs mailing list
Bf-blender-cvs@blender.org
http://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to