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
diff options
context:
space:
mode:
authorJoshua Leung <aligorith@gmail.com>2014-05-04 15:28:27 +0400
committerJoshua Leung <aligorith@gmail.com>2014-05-04 15:28:27 +0400
commit2a3cdeadf11d29a2321d5d19929c82f19d8ec186 (patch)
treece74161edbe0358e7f8467dea26e69c0f058b0ad /source/blender/editors/animation
parentc561e0d929dc0b3a164dbebd74c1ff06be585679 (diff)
Fixes for errors uncovered after previous commit
Diffstat (limited to 'source/blender/editors/animation')
-rw-r--r--source/blender/editors/animation/anim_channels_defines.c23
1 files changed, 13 insertions, 10 deletions
diff --git a/source/blender/editors/animation/anim_channels_defines.c b/source/blender/editors/animation/anim_channels_defines.c
index 55253c81c6c..3e0b26f2c6f 100644
--- a/source/blender/editors/animation/anim_channels_defines.c
+++ b/source/blender/editors/animation/anim_channels_defines.c
@@ -859,10 +859,11 @@ static int acf_group_setting_flag(bAnimContext *ac, eAnimChannel_Settings settin
case ACHANNEL_SETTING_VISIBLE: /* visibility - graph editor */
*neg = 1;
return AGRP_NOTVISIBLE;
+
+ default:
+ /* this shouldn't happen */
+ return 0;
}
-
- /* this shouldn't happen */
- return 0;
}
/* get pointer to the setting */
@@ -2456,7 +2457,7 @@ static int acf_gpd_icon(bAnimListElem *UNUSED(ale))
}
/* check if some setting exists for this channel */
-static bool acf_gpd_setting_valid(bAnimContext *UNUSED(ac), bAnimListElem *UNUSED(ale), int setting)
+static bool acf_gpd_setting_valid(bAnimContext *UNUSED(ac), bAnimListElem *UNUSED(ale), eAnimChannel_Settings setting)
{
switch (setting) {
/* only select and expand supported */
@@ -2481,10 +2482,11 @@ static int acf_gpd_setting_flag(bAnimContext *UNUSED(ac), eAnimChannel_Settings
case ACHANNEL_SETTING_EXPAND: /* expanded */
return GP_DATA_EXPAND;
+
+ default:
+ /* these shouldn't happen */
+ return 0;
}
-
- /* this shouldn't happen */
- return 0;
}
/* get pointer to the setting */
@@ -2646,10 +2648,11 @@ static int acf_mask_setting_flag(bAnimContext *UNUSED(ac), eAnimChannel_Settings
case ACHANNEL_SETTING_EXPAND: /* expanded */
return MASK_ANIMF_EXPAND;
+
+ default:
+ /* this shouldn't happen */
+ return 0;
}
-
- /* this shouldn't happen */
- return 0;
}
/* get pointer to the setting */