[Bf-blender-cvs] [fc4f2571ba2] master: GPencil: Remove creation of Tint brush in versioning code

Antonio Vazquez noreply at git.blender.org
Thu May 14 15:57:47 CEST 2020


Commit: fc4f2571ba29e8f29e7f1d8a915f3a9e38229a28
Author: Antonio Vazquez
Date:   Thu May 14 15:57:21 2020 +0200
Branches: master
https://developer.blender.org/rBfc4f2571ba29e8f29e7f1d8a915f3a9e38229a28

GPencil: Remove creation of Tint brush in versioning code

This is not required.

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

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

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

diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 91c07d810b7..62e3a196b08 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -4786,15 +4786,6 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
             brush->gpencil_weight_tool = brush->gpencil_settings->brush_type;
           }
         }
-        /* Tint brush. */
-        Brush *brush = BLI_findstring(&bmain->brushes, "Tint", offsetof(ID, name) + 2);
-        if (brush == NULL) {
-          brush = BKE_brush_add(bmain, "Tint", OB_MODE_PAINT_GPENCIL);
-          BKE_brush_init_gpencil_settings(brush);
-        }
-        BKE_gpencil_brush_preset_set(bmain, brush, GP_BRUSH_PRESET_TINT);
-
-        BKE_paint_toolslots_init_from_main(bmain);
       }
 
       LISTBASE_FOREACH (Material *, mat, &bmain->materials) {



More information about the Bf-blender-cvs mailing list