Cleanup: fix compiler warnings

This commit is contained in:
2019-09-26 16:32:27 +02:00
parent 09dc7bce37
commit b7f27996e7
2 changed files with 2 additions and 1 deletions

View File

@@ -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;

View File

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