Fix (unreported) missing handling of GPencil Layer's parent Object pointer in BKE_library_query.

Grrrr... still finding missing pointers here... :/
This commit is contained in:
Bastien Montagne 2017-04-19 21:47:01 +02:00
parent aaec934096
commit 1c28e12414
1 changed files with 8 additions and 1 deletions

View File

@ -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: