static void expand_local_mesh(Main *bmain, Mesh *me) { id_lib_extern((ID *)me->texcomesh); if(me->mtface) { /* why is this an exception? - should not really make local when extern'ing - campbell */ make_local_tface(bmain, me); } if(me->mat) { extern_local_matarar(me->mat, me->totcol); } }
static void expand_local_mesh(Mesh *me) { id_lib_extern((ID *)me->texcomesh); if (me->mtface || me->mtpoly) { int a, i; for (i = 0; i < me->pdata.totlayer; i++) { if (me->pdata.layers[i].type == CD_MTEXPOLY) { MTexPoly *txface = (MTexPoly *)me->pdata.layers[i].data; for (a = 0; a < me->totpoly; a++, txface++) { /* special case: ima always local immediately */ if (txface->tpage) { id_lib_extern((ID *)txface->tpage); } } } } for (i = 0; i < me->fdata.totlayer; i++) { if (me->fdata.layers[i].type == CD_MTFACE) { MTFace *tface = (MTFace *)me->fdata.layers[i].data; for (a = 0; a < me->totface; a++, tface++) { /* special case: ima always local immediately */ if (tface->tpage) { id_lib_extern((ID *)tface->tpage); } } } } } if (me->mat) { extern_local_matarar(me->mat, me->totcol); } }
static void extern_local_mball(MetaBall *mb) { if (mb->mat) { extern_local_matarar(mb->mat, mb->totcol); } }