diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-04-01 11:22:06 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2019-04-01 15:30:42 +0300 |
commit | a2a571987c6f6a1caee57057cfed18896b786c5b (patch) | |
tree | d6ed9f66bc7327c4c0ff923a9f1e94586abd38a0 /source/blender/makesrna/RNA_types.h | |
parent | 90638d850de076dab20554b15b37ef9d0b71f8ea (diff) |
Fix T62960: Expanding/Closing Constraints/Modifiers causes re-render
Mark specific properties as no-dependency-graph tag.
This is needed to avoid a centralized Copy-on-Write tag from RNA
pointer update.
Diffstat (limited to 'source/blender/makesrna/RNA_types.h')
-rw-r--r-- | source/blender/makesrna/RNA_types.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/blender/makesrna/RNA_types.h b/source/blender/makesrna/RNA_types.h index e713007cc03..49e1444d6ef 100644 --- a/source/blender/makesrna/RNA_types.h +++ b/source/blender/makesrna/RNA_types.h @@ -239,6 +239,11 @@ typedef enum PropertyFlag { PROP_DYNAMIC = (1 << 17), /* for dynamic arrays, and retvals of type string */ PROP_ENUM_NO_CONTEXT = (1 << 24), /* for enum that shouldn't be contextual */ PROP_ENUM_NO_TRANSLATE = (1 << 29), /* for enums not to be translated (e.g. viewlayers' names in nodes) */ + + /* Don't do dependency graph tag from a property update callback. + * Use this for properties which defines interface state, for example, + * properties which denotes whether modifier panel is collapsed or not. */ + PROP_NO_DEG_UPDATE = (1 << 30), } PropertyFlag; /* Flags related to comparing and overriding RNA properties. Make sure enums are updated with these */ |