diff options
Diffstat (limited to 'source/blender/blenloader')
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 17 |
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) } } } + } |