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.
This commit is contained in:
Bastien Montagne 2022-06-17 12:50:26 +02:00
parent 2c1bffa286
commit 8d61ca5815
1 changed files with 9 additions and 1 deletions

View File

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