[Bf-blender-cvs] [031d1a2da1c] greasepencil-object: GPencil: Disable Stroke in Solid Fill default material

Antonio Vazquez noreply at git.blender.org
Mon Mar 2 16:20:32 CET 2020


Commit: 031d1a2da1c415768704a55e15fa4c5a47d7c6f1
Author: Antonio Vazquez
Date:   Mon Mar 2 16:20:16 2020 +0100
Branches: greasepencil-object
https://developer.blender.org/rB031d1a2da1c415768704a55e15fa4c5a47d7c6f1

GPencil: Disable Stroke in Solid Fill default material

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

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

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

diff --git a/source/blender/blenloader/intern/versioning_defaults.c b/source/blender/blenloader/intern/versioning_defaults.c
index dd0afcfa967..f6e355382f6 100644
--- a/source/blender/blenloader/intern/versioning_defaults.c
+++ b/source/blender/blenloader/intern/versioning_defaults.c
@@ -641,13 +641,19 @@ void BLO_update_defaults_startup_blend(Main *bmain, const char *app_template)
     }
     ma->gp_style->mode = GP_MATERIAL_MODE_DOT;
 
-    /* Squars Stroke. */
+    /* Squares Stroke. */
     ma = BLI_findstring(&bmain->materials, "Squares Stroke", offsetof(ID, name) + 2);
     if (ma == NULL) {
       ma = BKE_gpencil_material_add(bmain, "Squares Stroke");
     }
     ma->gp_style->mode = GP_MATERIAL_MODE_SQUARE;
 
+    /* Change Solid Fill settings. */
+    ma = BLI_findstring(&bmain->materials, "Solid Fill", offsetof(ID, name) + 2);
+    if (ma != NULL) {
+      ma->gp_style->flag &= ~GP_MATERIAL_STROKE_SHOW;
+    }
+
     /* Reset all grease pencil brushes. */
     Scene *scene = bmain->scenes.first;
     BKE_brush_gpencil_paint_presets(bmain, scene->toolsettings);



More information about the Bf-blender-cvs mailing list