was using the wrong rna type for GRAPH_OT_select_leftright
authorCampbell Barton <ideasman42@gmail.com>
Fri, 20 May 2011 18:00:19 +0000 (18:00 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Fri, 20 May 2011 18:00:19 +0000 (18:00 +0000)
source/blender/editors/space_graph/graph_select.c

index daae0ad6625fb52ad82fcbb63c109f1f8fe22244..da7a95cdbf727ea9d64bc0216d6923bf40ad9f8b 100644 (file)
@@ -822,9 +822,9 @@ static int graphkeys_select_leftright_invoke (bContext *C, wmOperator *op, wmEve
                /* determine which side of the current frame mouse is on */
                UI_view2d_region_to_view(v2d, event->mval[0], event->mval[1], &x, NULL);
                if (x < CFRA)
-                       RNA_int_set(op->ptr, "mode", GRAPHKEYS_LRSEL_LEFT);
+                       RNA_enum_set(op->ptr, "mode", GRAPHKEYS_LRSEL_LEFT);
                else    
-                       RNA_int_set(op->ptr, "mode", GRAPHKEYS_LRSEL_RIGHT);
+                       RNA_enum_set(op->ptr, "mode", GRAPHKEYS_LRSEL_RIGHT);
        }
        
        /* perform selection */