[Bf-blender-cvs] [f5ec29023dc] master: GPencil: Fix initial value for fill factor after last changes

Antonio Vazquez noreply at git.blender.org
Sat Jan 16 16:36:56 CET 2021


Commit: f5ec29023dcad11a7b4ced3d52d69d21b443ce02
Author: Antonio Vazquez
Date:   Sat Jan 16 16:36:49 2021 +0100
Branches: master
https://developer.blender.org/rBf5ec29023dcad11a7b4ced3d52d69d21b443ce02

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.

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

M	source/blender/blenloader/intern/versioning_290.c

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

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



More information about the Bf-blender-cvs mailing list