Fix for RNA_int/enum mixup

This commit is contained in:
Campbell Barton
2014-07-06 20:54:08 +10:00
parent cfc62a97a5
commit 4bc62b31af
2 changed files with 3 additions and 3 deletions

View File

@@ -2078,7 +2078,7 @@ static void ANIM_OT_channels_collapse(wmOperatorType *ot)
* 3) No drivers
*/
static int animchannels_clean_empty_exec(bContext *C, wmOperator *op)
static int animchannels_clean_empty_exec(bContext *C, wmOperator *UNUSED(op))
{
bAnimContext ac;

View File

@@ -465,9 +465,9 @@ static int nlaedit_select_leftright_invoke(bContext *C, wmOperator *op, const wm
/* determine which side of the current frame mouse is on */
x = UI_view2d_region_to_view_x(v2d, event->mval[0]);
if (x < CFRA)
RNA_int_set(op->ptr, "mode", NLAEDIT_LRSEL_LEFT);
RNA_enum_set(op->ptr, "mode", NLAEDIT_LRSEL_LEFT);
else
RNA_int_set(op->ptr, "mode", NLAEDIT_LRSEL_RIGHT);
RNA_enum_set(op->ptr, "mode", NLAEDIT_LRSEL_RIGHT);
}
/* perform selection */