Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/source
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2014-07-06 14:54:08 +0400
committerCampbell Barton <ideasman42@gmail.com>2014-07-07 00:46:57 +0400
commit4bc62b31af30ffe2037a459882e249f234efd4c3 (patch)
treeb6a5f49e397437eb29442b9a0f883c58159750fd /source
parentcfc62a97a595befb2764b2c6f58365be08b59ab5 (diff)
Fix for RNA_int/enum mixup
Diffstat (limited to 'source')
-rw-r--r--source/blender/editors/animation/anim_channels_edit.c2
-rw-r--r--source/blender/editors/space_nla/nla_select.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/source/blender/editors/animation/anim_channels_edit.c b/source/blender/editors/animation/anim_channels_edit.c
index ab190e0077c..9997cc07c19 100644
--- a/source/blender/editors/animation/anim_channels_edit.c
+++ b/source/blender/editors/animation/anim_channels_edit.c
@@ -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;
diff --git a/source/blender/editors/space_nla/nla_select.c b/source/blender/editors/space_nla/nla_select.c
index 0d26f374dd0..8261397c940 100644
--- a/source/blender/editors/space_nla/nla_select.c
+++ b/source/blender/editors/space_nla/nla_select.c
@@ -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 */