[Bf-blender-cvs] [3500274d9cf] blender2.8: Add more granular ID recalc bits
Sergey Sharybin
noreply at git.blender.org
Tue Dec 19 11:49:27 CET 2017
Commit: 3500274d9cf4c024af4b4d5e1c9b168cd5fba078
Author: Sergey Sharybin
Date: Tue Dec 19 10:11:00 2017 +0100
Branches: blender2.8
https://developer.blender.org/rB3500274d9cf4c024af4b4d5e1c9b168cd5fba078
Add more granular ID recalc bits
Only bits for now, unused. Just to keep upcoming patches smaller.
===================================================================
M source/blender/makesdna/DNA_ID.h
===================================================================
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h
index ae908b1aabc..04929931bfd 100644
--- a/source/blender/makesdna/DNA_ID.h
+++ b/source/blender/makesdna/DNA_ID.h
@@ -459,8 +459,17 @@ enum {
enum {
/* RESET_AFTER_USE, used by update code (depsgraph). */
ID_RECALC_NONE = 0,
+ /* Generic recalc flag, when nothing else matches. */
ID_RECALC = 1 << 0,
- ID_RECALC_ALL = ID_RECALC,
+ /* Per-component update flags. */
+ ID_RECALC_ANIMATION = 1 << 1,
+ ID_RECALC_DRAW = 1 << 2,
+ ID_RECALC_DRAW_CACHE = 1 << 3,
+ ID_RECALC_GEOMETRY = 1 << 4,
+ ID_RECALC_TRANSFORM = 1 << 5,
+ ID_RECALC_COLLECTIONS = 1 << 6,
+ /* Special flag to check if SOMETHING was changed. */
+ ID_RECALC_ALL = (~(int)0),
};
/* To filter ID types (filter_id) */
More information about the Bf-blender-cvs
mailing list