action editor was setting wrong rna type on Ctrl+RMB
authorCampbell Barton <ideasman42@gmail.com>
Sat, 14 May 2011 15:44:56 +0000 (15:44 +0000)
committerCampbell Barton <ideasman42@gmail.com>
Sat, 14 May 2011 15:44:56 +0000 (15:44 +0000)
source/blender/editors/space_action/action_select.c

index bee872dbe607b0179e29061403eb8049e5cbc3b6..6637e7004d58329412d00b1eff513119692fb42d 100644 (file)
@@ -858,9 +858,9 @@ static int actkeys_select_leftright_invoke (bContext *C, wmOperator *op, wmEvent
                /* determine which side of the current frame mouse is on */
                UI_view2d_region_to_view(v2d, mval[0], mval[1], &x, NULL);
                if (x < CFRA)
-                       RNA_int_set(op->ptr, "mode", ACTKEYS_LRSEL_LEFT);
+                       RNA_enum_set(op->ptr, "mode", ACTKEYS_LRSEL_LEFT);
                else    
-                       RNA_int_set(op->ptr, "mode", ACTKEYS_LRSEL_RIGHT);
+                       RNA_enum_set(op->ptr, "mode", ACTKEYS_LRSEL_RIGHT);
        }
        
        /* perform selection */