GPencil: Fix initial value for fill factor after last changes

The value has changed due a previous commit and the minimum value cannot be 0.
This commit is contained in:
2021-01-16 16:36:49 +01:00
parent e02d84eb3b
commit f5ec29023d

View File

@@ -1595,5 +1595,11 @@ void blo_do_versions_290(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
}
/* Fix Fill factor for grease pencil fill brushes. */
LISTBASE_FOREACH (Brush *, brush, &bmain->brushes) {
if ((brush->gpencil_settings) && (brush->gpencil_settings->fill_factor == 0.0f)) {
brush->gpencil_settings->fill_factor = 1.0f;
}
}
}
}