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:
authorCampbell Barton <ideasman42@gmail.com>2013-07-19 19:23:42 +0400
committerCampbell Barton <ideasman42@gmail.com>2013-07-19 19:23:42 +0400
commit397da5000229a5ada135ca58cfe29bb7612f21d3 (patch)
treea339518b59aa399f2f82efce2fb1a03ee33243c8 /source/blender/editors/space_graph
parentfd1d4151f135e9f82ca41636c194045fba823a58 (diff)
style cleanup: switch statements, include break statements within braces & indent.
also indent case's within the switch (we already did both of these almost everywhere)
Diffstat (limited to 'source/blender/editors/space_graph')
-rw-r--r--source/blender/editors/space_graph/graph_buttons.c2
-rw-r--r--source/blender/editors/space_graph/space_graph.c14
2 files changed, 7 insertions, 9 deletions
diff --git a/source/blender/editors/space_graph/graph_buttons.c b/source/blender/editors/space_graph/graph_buttons.c
index 8f9893e3bce..a81c0d6dfd6 100644
--- a/source/blender/editors/space_graph/graph_buttons.c
+++ b/source/blender/editors/space_graph/graph_buttons.c
@@ -383,8 +383,8 @@ static void do_graph_region_driver_buttons(bContext *C, void *UNUSED(arg), int e
{
/* rebuild depsgraph for the new deps */
DAG_relations_tag_update(bmain);
+ break;
}
- break;
}
/* default for now */
diff --git a/source/blender/editors/space_graph/space_graph.c b/source/blender/editors/space_graph/space_graph.c
index 765c61b5bed..25101d89f1d 100644
--- a/source/blender/editors/space_graph/space_graph.c
+++ b/source/blender/editors/space_graph/space_graph.c
@@ -518,15 +518,13 @@ static void graph_refresh(const bContext *C, ScrArea *sa)
switch (sipo->mode) {
case SIPO_MODE_ANIMATION: /* all animation */
{
-
+ break;
}
- break;
case SIPO_MODE_DRIVERS: /* drivers only */
{
-
+ break;
}
- break;
}
/* region updates? */
@@ -563,11 +561,12 @@ static void graph_refresh(const bContext *C, ScrArea *sa)
/* set color of curve here */
switch (fcu->color_mode) {
case FCURVE_COLOR_CUSTOM:
+ {
/* User has defined a custom color for this curve already (we assume it's not going to cause clashes with text colors),
* which should be left alone... Nothing needs to be done here.
*/
break;
-
+ }
case FCURVE_COLOR_AUTO_RGB:
{
/* F-Curve's array index is automatically mapped to RGB values. This works best of 3-value vectors.
@@ -590,9 +589,8 @@ static void graph_refresh(const bContext *C, ScrArea *sa)
col[0] = 0.3f; col[1] = 0.8f; col[2] = 1.0f;
break;
}
+ break;
}
- break;
-
case FCURVE_COLOR_AUTO_RAINBOW:
default:
{
@@ -600,8 +598,8 @@ static void graph_refresh(const bContext *C, ScrArea *sa)
* of current item index + total items to determine some RGB color
*/
getcolor_fcurve_rainbow(i, items, fcu->color);
+ break;
}
- break;
}
}