diff options
author | YimingWu <xp8110@outlook.com> | 2020-09-16 13:19:44 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2020-09-16 13:19:44 +0300 |
commit | 92104a822d0d48ba3d13f4e935eed0102e51e52e (patch) | |
tree | 51448328a97104bf29844014b0e90ca659b8593c /source/blender/makesdna/DNA_collection_types.h | |
parent | 1a5106c0d1c783715374db129c1cbedc58059e55 (diff) | |
parent | d376aea61840587eddcf75386b804673e5593d60 (diff) |
Merge remote-tracking branch 'origin/master' into lanpr-under-gp
# Conflicts:
# source/blender/makesdna/DNA_collection_types.h
# source/blender/makesrna/intern/rna_collection.c
Diffstat (limited to 'source/blender/makesdna/DNA_collection_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_collection_types.h | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_collection_types.h b/source/blender/makesdna/DNA_collection_types.h index bfadb18e352..a5e71fa5fc0 100644 --- a/source/blender/makesdna/DNA_collection_types.h +++ b/source/blender/makesdna/DNA_collection_types.h @@ -70,7 +70,7 @@ typedef struct Collection { /** Line Art engine specific */ short lineart_usage; - char _pad[2]; + int16_t color_tag; /* Runtime. Cache of objects in this collection and all its * children. This is created on demand when e.g. some physics @@ -108,3 +108,18 @@ enum { * Using a generic tag like LIB_TAG_DOIT for this is just impossible, we need our very own. */ COLLECTION_TAG_RELATION_REBUILD = (1 << 0), }; + +/* Collection->color_tag. */ +typedef enum CollectionColorTag { + COLLECTION_COLOR_NONE = -1, + COLLECTION_COLOR_01, + COLLECTION_COLOR_02, + COLLECTION_COLOR_03, + COLLECTION_COLOR_04, + COLLECTION_COLOR_05, + COLLECTION_COLOR_06, + COLLECTION_COLOR_07, + COLLECTION_COLOR_08, + + COLLECTION_COLOR_TOT, +} CollectionColorTag; |