[Bf-blender-cvs] [b7f27996e7f] master: Cleanup: fix compiler warnings

Brecht Van Lommel noreply at git.blender.org
Thu Sep 26 16:37:16 CEST 2019


Commit: b7f27996e7fcd514d76acb45a3199821988d7615
Author: Brecht Van Lommel
Date:   Thu Sep 26 16:32:27 2019 +0200
Branches: master
https://developer.blender.org/rBb7f27996e7fcd514d76acb45a3199821988d7615

Cleanup: fix compiler warnings

===================================================================

M	source/blender/blenkernel/intern/brush.c
M	source/blender/blenloader/intern/versioning_defaults.c

===================================================================

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);
       }



More information about the Bf-blender-cvs mailing list