From 8d61ca5815766a26a92aa8be020288e97106d9e2 Mon Sep 17 00:00:00 2001 From: Bastien Montagne Date: Fri, 17 Jun 2022 12:50:26 +0200 Subject: BKE_main: Relations: Add `TO`/`FROM` variants of processed flags. In some cases, it can be usefull to distinguish when an entry has been processed in which direction (`to` when handling ID pointers used by the entry, `from` when handling ID using this entry). Previous `MAINIDRELATIONS_ENTRY_TAGS_PROCESSED` tag is now a combination of the two new ones. --- source/blender/blenkernel/BKE_main.h | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'source/blender/blenkernel/BKE_main.h') diff --git a/source/blender/blenkernel/BKE_main.h b/source/blender/blenkernel/BKE_main.h index 59b22f7759b..2c444f42c46 100644 --- a/source/blender/blenkernel/BKE_main.h +++ b/source/blender/blenkernel/BKE_main.h @@ -77,8 +77,16 @@ typedef struct MainIDRelationsEntry { typedef enum eMainIDRelationsEntryTags { /* Generic tag marking the entry as to be processed. */ MAINIDRELATIONS_ENTRY_TAGS_DOIT = 1 << 0, + + /* Generic tag marking the entry as processed in the `to` direction (i.e. we processed the IDs + * used by this item). */ + MAINIDRELATIONS_ENTRY_TAGS_PROCESSED_TO = 1 << 1, + /* Generic tag marking the entry as processed in the `from` direction (i.e. we processed the IDs + * using by this item). */ + MAINIDRELATIONS_ENTRY_TAGS_PROCESSED_FROM = 1 << 2, /* Generic tag marking the entry as processed. */ - MAINIDRELATIONS_ENTRY_TAGS_PROCESSED = 1 << 1, + MAINIDRELATIONS_ENTRY_TAGS_PROCESSED = MAINIDRELATIONS_ENTRY_TAGS_PROCESSED_TO | + MAINIDRELATIONS_ENTRY_TAGS_PROCESSED_FROM, } eMainIDRelationsEntryTags; typedef struct MainIDRelations { -- cgit v1.2.3