[Bf-blender-cvs] [f2b5fd0a0e8] master: Cleanup: give anonymous enum a name
Jacques Lucke
noreply at git.blender.org
Fri Sep 23 12:48:34 CEST 2022
Commit: f2b5fd0a0e83b691361d6da1a4504fe61f4e8bbf
Author: Jacques Lucke
Date: Fri Sep 23 12:48:22 2022 +0200
Branches: master
https://developer.blender.org/rBf2b5fd0a0e83b691361d6da1a4504fe61f4e8bbf
Cleanup: give anonymous enum a name
===================================================================
M source/blender/depsgraph/DEG_depsgraph_query.h
===================================================================
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.
More information about the Bf-blender-cvs
mailing list