Refactor: Move brush foreach_id to new IDTypeInfo structure.

This commit is contained in:
2020-05-13 19:52:19 +02:00
parent e4890fa564
commit 4da3044abc
4 changed files with 29 additions and 19 deletions

View File

@@ -151,6 +151,13 @@ IDTypeInfo IDType_ID_TE = {
.foreach_id = texture_foreach_id,
};
/* Utils for all IDs using those texture slots. */
void BKE_texture_mtex_foreach_id(LibraryForeachIDData *data, MTex *mtex)
{
BKE_LIB_FOREACHID_PROCESS(data, mtex->object, IDWALK_CB_NOP);
BKE_LIB_FOREACHID_PROCESS(data, mtex->tex, IDWALK_CB_USER);
}
/* ****************** Mapping ******************* */
TexMapping *BKE_texture_mapping_add(int type)