Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2018-11-03 10:46:21 +0300
committerAntonioya <blendergit@gmail.com>2018-11-03 10:51:36 +0300
commit628908a710a2f7a4b4900bc93b0b3c445a4ed0ad (patch)
treee6da88db5480840f2c2950f6c0c65c8b03f4a17e /source/blender/blenloader
parentc48ca87bcee01333f1d1816a0273521a7cb40964 (diff)
GP: New main switches to hide stroke and fill material
New parameters to switch visibility of stroke and fill
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r--source/blender/blenloader/intern/versioning_280.c17
1 files changed, 17 insertions, 0 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c
index 1384a4f28e2..56e91729d0e 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -2234,6 +2234,22 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
OB_EMPTY_IMAGE_VISIBLE_PERSPECTIVE |
OB_EMPTY_IMAGE_VISIBLE_ORTHOGRAPHIC);
}
+
+
+ }
+
+ /* TODO: add to next version bump */
+ {
+ /* grease pencil main material show switches */
+ for (Material *mat = bmain->mat.first; mat; mat = mat->id.next) {
+ if (mat->gp_style) {
+ if (((mat->gp_style->flag & GP_STYLE_STROKE_SHOW) == 0) &&
+ ((mat->gp_style->flag & GP_STYLE_FILL_SHOW) == 0)) {
+ mat->gp_style->flag |= GP_STYLE_STROKE_SHOW;
+ mat->gp_style->flag |= GP_STYLE_FILL_SHOW;
+ }
+ }
+ }
}
{
@@ -2243,4 +2259,5 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
}
}
}
+
}