[Bf-blender-cvs] [e57fe5cd95f] blender2.8: Depsgraph: Use named typedef for tag
Sergey Sharybin
noreply at git.blender.org
Mon Dec 18 16:53:30 CET 2017
Commit: e57fe5cd95f7c7af35a5733eee5e4b46b2382c58
Author: Sergey Sharybin
Date: Mon Dec 18 16:53:12 2017 +0100
Branches: blender2.8
https://developer.blender.org/rBe57fe5cd95f7c7af35a5733eee5e4b46b2382c58
Depsgraph: Use named typedef for tag
===================================================================
M source/blender/depsgraph/DEG_depsgraph.h
===================================================================
diff --git a/source/blender/depsgraph/DEG_depsgraph.h b/source/blender/depsgraph/DEG_depsgraph.h
index efa18a98cf9..4f45768cbea 100644
--- a/source/blender/depsgraph/DEG_depsgraph.h
+++ b/source/blender/depsgraph/DEG_depsgraph.h
@@ -140,7 +140,7 @@ void DEG_graph_on_visible_update(struct Main *bmain, Depsgraph *depsgraph);
void DEG_on_visible_update(struct Main *bmain, const bool do_time);
/* Tag given ID for an update in all the dependency graphs. */
-enum {
+typedef enum eDepsgraph_Tag {
/* Object transformation changed, corresponds to OB_RECALC_OB. */
DEG_TAG_TRANSFORM = (1 << 0),
/* Object geometry changed, corresponds to OB_RECALC_DATA. */
@@ -168,7 +168,7 @@ enum {
DEG_TAG_BASE_FLAGS_UPDATE = (1 << 11),
/* Only inform editors about the change. Don't modify datablock itself. */
DEG_TAG_EDITORS_UPDATE = (1 << 12),
-};
+} eDepsgraph_Tag;
void DEG_id_tag_update(struct ID *id, int flag);
void DEG_id_tag_update_ex(struct Main *bmain, struct ID *id, int flag);
More information about the Bf-blender-cvs
mailing list