diff options
author | Bastien Montagne <bastien@blender.org> | 2020-04-25 21:58:55 +0300 |
---|---|---|
committer | Bastien Montagne <bastien@blender.org> | 2020-04-28 16:25:19 +0300 |
commit | 9f090bac5c7455ab22cd22cc3f6ea94b54d6de33 (patch) | |
tree | c434f5958335b1f4be6f2de7aba8c240ed8bc1e6 /source/blender/makesdna | |
parent | 7d85b6431fc331d9869f945bf7c9f3353b7b8c95 (diff) |
IDProperties: add a foreach looper and use it in libquery code.
Note: part of fix for T75279.
Differential Revision: https://developer.blender.org/D7550
Diffstat (limited to 'source/blender/makesdna')
-rw-r--r-- | source/blender/makesdna/DNA_ID.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/source/blender/makesdna/DNA_ID.h b/source/blender/makesdna/DNA_ID.h index d6d3628cc66..5230cb050f4 100644 --- a/source/blender/makesdna/DNA_ID.h +++ b/source/blender/makesdna/DNA_ID.h @@ -106,6 +106,18 @@ enum { IDP_NUMTYPES = 10, }; +/** Used by some IDP utils, keep values in sync with type enum above. */ +enum { + IDP_TYPE_FILTER_STRING = 1 << 0, + IDP_TYPE_FILTER_INT = 1 << 1, + IDP_TYPE_FILTER_FLOAT = 1 << 2, + IDP_TYPE_FILTER_ARRAY = 1 << 5, + IDP_TYPE_FILTER_GROUP = 1 << 6, + IDP_TYPE_FILTER_ID = 1 << 7, + IDP_TYPE_FILTER_DOUBLE = 1 << 8, + IDP_TYPE_FILTER_IDPARRAY = 1 << 9, +}; + /*->subtype */ /* IDP_STRING */ |