diff options
author | Antonio Vazquez <blendergit@gmail.com> | 2021-01-16 18:36:49 +0300 |
---|---|---|
committer | Antonio Vazquez <blendergit@gmail.com> | 2021-01-16 18:36:49 +0300 |
commit | f5ec29023dcad11a7b4ced3d52d69d21b443ce02 (patch) | |
tree | 96623c64ebb78a516e77527fcb45c3bf65181c13 | |
parent | e02d84eb3bea710aa4a658629813bd7e4c67ce4c (diff) |
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.
-rw-r--r-- | source/blender/blenloader/intern/versioning_290.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_290.c b/source/blender/blenloader/intern/versioning_290.c index 40481505e1c..24683351bfd 100644 --- a/source/blender/blenloader/intern/versioning_290.c +++ b/source/blender/blenloader/intern/versioning_290.c @@ -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; + } + } } } |