was using the wrong rna type for GRAPH_OT_select_leftright

This commit is contained in:
Campbell Barton
2011-05-20 18:00:19 +00:00
parent 8d8e42a451
commit 9563743f4e

View 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 */