diff options
author | Jacques Lucke <jacques@blender.org> | 2022-09-23 13:48:22 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-09-23 13:48:22 +0300 |
commit | f2b5fd0a0e83b691361d6da1a4504fe61f4e8bbf (patch) | |
tree | e15e9b1adf02242edd8c6aa491b7701f3be2c13d /source | |
parent | e5d4afd5bac71e29ba71ecf091feaa0d70b70260 (diff) |
Cleanup: give anonymous enum a name
Diffstat (limited to 'source')
-rw-r--r-- | source/blender/depsgraph/DEG_depsgraph_query.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source/blender/depsgraph/DEG_depsgraph_query.h b/source/blender/depsgraph/DEG_depsgraph_query.h index ea85f4920e8..81c264d70a3 100644 --- a/source/blender/depsgraph/DEG_depsgraph_query.h +++ b/source/blender/depsgraph/DEG_depsgraph_query.h @@ -10,6 +10,7 @@ #pragma once #include "BLI_iterator.h" +#include "BLI_utildefines.h" #include "DEG_depsgraph.h" #include "DEG_depsgraph_build.h" @@ -132,17 +133,20 @@ bool DEG_is_fully_evaluated(const struct Depsgraph *depsgraph); /** \name DEG object iterators * \{ */ -enum { +typedef enum DegIterFlag { DEG_ITER_OBJECT_FLAG_LINKED_DIRECTLY = (1 << 0), DEG_ITER_OBJECT_FLAG_LINKED_INDIRECTLY = (1 << 1), DEG_ITER_OBJECT_FLAG_LINKED_VIA_SET = (1 << 2), DEG_ITER_OBJECT_FLAG_VISIBLE = (1 << 3), DEG_ITER_OBJECT_FLAG_DUPLI = (1 << 4), -}; +} DegIterFlag; +ENUM_OPERATORS(DegIterFlag, DEG_ITER_OBJECT_FLAG_DUPLI) typedef struct DEGObjectIterSettings { struct Depsgraph *depsgraph; /** + * Bitfield of the #DegIterFlag. + * * NOTE: Be careful with DEG_ITER_OBJECT_FLAG_LINKED_INDIRECTLY objects. * Although they are available they have no overrides (collection_properties) * and will crash if you try to access it. |