diff options
-rw-r--r-- | source/blender/blenloader/intern/versioning_280.c | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/source/blender/blenloader/intern/versioning_280.c b/source/blender/blenloader/intern/versioning_280.c index c470a3a6d96..fc009f6c876 100644 --- a/source/blender/blenloader/intern/versioning_280.c +++ b/source/blender/blenloader/intern/versioning_280.c @@ -2237,17 +2237,12 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain) } - /* TODO: add to next version bump */ - { + if (!MAIN_VERSION_ATLEAST(bmain, 280, 30)) { /* 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; - } + mat->gp_style->flag |= GP_STYLE_STROKE_SHOW; + mat->gp_style->flag |= GP_STYLE_FILL_SHOW; } } } |