[Bf-blender-cvs] [9bba2b729c5] greasepencil-object: GPencil: Fix error in versioning for old files

Antonio Vazquez noreply at git.blender.org
Thu Nov 7 23:07:08 CET 2019


Commit: 9bba2b729c5c03c7bd8b3d5ac618487f233e6024
Author: Antonio Vazquez
Date:   Thu Nov 7 23:06:58 2019 +0100
Branches: greasepencil-object
https://developer.blender.org/rB9bba2b729c5c03c7bd8b3d5ac618487f233e6024

GPencil: Fix error in versioning for old files

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

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 8235e0568e0..e8f656abf31 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -1289,7 +1289,9 @@ void do_versions_after_linking_280(Main *bmain, ReportList *UNUSED(reports))
         }
       }
     }
+  }
 
+  if (!MAIN_VERSION_ATLEAST(bmain, 282, 2)) {
     /* Init all Vertex Paint brushes. */
     for (Scene *scene = bmain->scenes.first; scene; scene = scene->id.next) {
       BKE_brush_gpencil_presets(bmain, scene->toolsettings);



More information about the Bf-blender-cvs mailing list