[Bf-blender-cvs] [6a5fa02cb9d] greasepencil-object: GPencil: Add versioning code for new tool
Antonio Vazquez
noreply at git.blender.org
Thu Nov 7 18:07:24 CET 2019
Commit: 6a5fa02cb9d9c9eebc0a43d91d357578a8f3bda8
Author: Antonio Vazquez
Date: Thu Nov 7 14:00:51 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB6a5fa02cb9d9c9eebc0a43d91d357578a8f3bda8
GPencil: Add versioning code for new tool
===================================================================
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 3f71b914e13..a0cc0e495bd 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -3967,5 +3967,15 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
sa->flag &= ~AREA_FLAG_UNUSED_6;
}
}
+
+ /* Init new Grease Pencil Vertex Paint tools. */
+ {
+ for (Brush *brush = bmain->brushes.first; brush; brush = brush->id.next) {
+ if (brush->gpencil_settings != NULL) {
+ brush->gpencil_vertex_tool = brush->gpencil_settings->brush_type;
+ }
+ }
+ BKE_paint_toolslots_init_from_main(bmain);
+ }
}
}
More information about the Bf-blender-cvs
mailing list