[Bf-blender-cvs] [c5492121dff] greasepencil-refactor: GPencil: Only patch grease pencil objects

Antonio Vazquez noreply at git.blender.org
Fri Dec 20 19:35:15 CET 2019


Commit: c5492121dff59f434576678e84f92f2deea2eabc
Author: Antonio Vazquez
Date:   Fri Dec 20 19:35:08 2019 +0100
Branches: greasepencil-refactor
https://developer.blender.org/rBc5492121dff59f434576678e84f92f2deea2eabc

GPencil: Only patch grease pencil objects

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

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 91d57890ac2..6da703fb6ac 100644
--- a/source/blender/blenloader/intern/versioning_280.c
+++ b/source/blender/blenloader/intern/versioning_280.c
@@ -4381,7 +4381,9 @@ void blo_do_versions_280(FileData *fd, Library *UNUSED(lib), Main *bmain)
 
       /* Fix Grease Pencil VFX and modifiers. */
       LISTBASE_FOREACH (Object *, ob, &bmain->objects) {
-
+        if (ob->type != OB_GPENCIL) {
+          continue;
+        }
         /* VFX. */
         LISTBASE_FOREACH (ShaderFxData *, fx, &ob->shader_fx) {
           switch (fx->type) {



More information about the Bf-blender-cvs mailing list