diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2017-04-19 22:47:01 +0300 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2017-04-19 22:47:01 +0300 |
commit | 1c28e124145a095b7e5f4c110d7864dba32a7f31 (patch) | |
tree | 9782c0356595c7526a5cd2fd148b55e354bf1464 /source/blender/blenkernel | |
parent | aaec934096ac0c5c2dc5c5f195b43263010491f3 (diff) |
Fix (unreported) missing handling of GPencil Layer's parent Object pointer in BKE_library_query.
Grrrr... still finding missing pointers here... :/
Diffstat (limited to 'source/blender/blenkernel')
-rw-r--r-- | source/blender/blenkernel/intern/library_query.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/blenkernel/intern/library_query.c b/source/blender/blenkernel/intern/library_query.c index 0616c614848..7d56b4a5553 100644 --- a/source/blender/blenkernel/intern/library_query.c +++ b/source/blender/blenkernel/intern/library_query.c @@ -971,13 +971,20 @@ void BKE_library_foreach_ID_link(Main *bmain, ID *id, LibraryIDLinkCallback call } break; } + case ID_GD: + { + bGPdata *gpencil = (bGPdata *) id; + + for (bGPDlayer *gp_layer = gpencil->layers.first; gp_layer; gp_layer = gp_layer->next) { + CALLBACK_INVOKE(gp_layer->parent, IDWALK_CB_NOP); + } + } /* Nothing needed for those... */ case ID_IM: case ID_VF: case ID_TXT: case ID_SO: - case ID_GD: case ID_WM: case ID_PAL: case ID_PC: |