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:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-26 17:32:27 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-09-26 17:32:27 +0300
commitb7f27996e7fcd514d76acb45a3199821988d7615 (patch)
tree8d91f2dac90fb326a7ef6ae2d1346f4c3e856535
parent09dc7bce37437e4d9c764958d2959da802176156 (diff)
Cleanup: fix compiler warnings
-rw-r--r--source/blender/blenkernel/intern/brush.c1
-rw-r--r--source/blender/blenloader/intern/versioning_defaults.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/brush.c b/source/blender/blenkernel/intern/brush.c
index bd372237e91..44853f74264 100644
--- a/source/blender/blenkernel/intern/brush.c
+++ b/source/blender/blenkernel/intern/brush.c
@@ -819,6 +819,7 @@ void BKE_brush_sculpt_reset(Brush *br)
br->flag |= BRUSH_DIR_IN;
br->curve_preset = BRUSH_CURVE_POW4;
br->spacing = 5;
+ break;
case SCULPT_TOOL_CLAY:
br->flag |= BRUSH_FRONTFACE;
break;
diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index 15d200f72d9..7da2272ce14 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -458,7 +458,7 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
}
/* Use the same tool icon color in the brush cursor */
- for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) {
+ for (brush = bmain->brushes.first; brush; brush = brush->id.next) {
if (brush->sculpt_tool) {
BKE_brush_sculpt_reset(brush);
}