[Bf-blender-cvs] [35e8acfe798] greasepencil-object: Add missing Object parent pointer from bGPLayer to library_query.

Bastien Montagne noreply at git.blender.org
Mon May 14 18:33:03 CEST 2018


Commit: 35e8acfe798628840f15af1f04d00d594e21f2d3
Author: Bastien Montagne
Date:   Mon May 14 18:24:28 2018 +0200
Branches: greasepencil-object
https://developer.blender.org/rB35e8acfe798628840f15af1f04d00d594e21f2d3

Add missing Object parent pointer from bGPLayer to library_query.

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

M	source/blender/blenkernel/intern/library_query.c

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

diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c
index e733a074256..c07dbd6589a 100644
--- a/source/blender/blenkernel/intern/library_query.c
+++ b/source/blender/blenkernel/intern/library_query.c
@@ -939,6 +939,10 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call
 					CALLBACK_INVOKE(gpencil->mat[i], IDWALK_CB_USER);
 				}
 
+				for (bGPDlayer *gplayer = gpencil->layers.first; gplayer != NULL; gplayer = gplayer->next) {
+					CALLBACK_INVOKE(gplayer->parent, IDWALK_CB_NOP);
+				}
+
 				break;
 			}



More information about the Bf-blender-cvs mailing list