Fix T64796: Default Spacing Smear Brush To 3%

Reviewers: brecht

Differential Revision: https://developer.blender.org/D5129
This commit is contained in:
Jeroen Bakker 2019-06-25 09:32:06 +02:00
parent 94af455e37
commit a55aa1a2ca
Notes: blender-bot 2023-02-14 11:34:30 +01:00
Referenced by issue #64796, Texture Paint Smear Brush Setting needs a change
1 changed files with 8 additions and 0 deletions

View File

@ -468,4 +468,12 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) {
brush->blur_kernel_radius = 2;
}
{
/* Change the spacing of the Smear brush to 3.0% */
Brush *brush = BLI_findstring(&bmain->brushes, "Smear", offsetof(ID, name) + 2);
if (brush) {
brush->spacing = 3.0;
}
}
}