diff options
author | Brecht Van Lommel <brecht@blender.org> | 2020-12-23 23:03:00 +0300 |
---|---|---|
committer | Brecht Van Lommel <brecht@blender.org> | 2020-12-24 14:40:48 +0300 |
commit | 2221389d6e8e799ae1a001e4a3457fa5c3fd90fb (patch) | |
tree | fd63649a404d21d94fa000245ba029d4b321a495 /source/blender/makesdna/DNA_scene_types.h | |
parent | 0b4fae7a51fb869c27d9407b8b5eadeb418d0bfc (diff) |
Bake: vertex color baking support for Cycles
In the Bake > Output panel, there is now a choice between Image Textures and
Vertex Colors. The active vertex color layer is used for baking. This works
with both existing per-corner and sculpt per-vertex vertex colors.
Diffstat (limited to 'source/blender/makesdna/DNA_scene_types.h')
-rw-r--r-- | source/blender/makesdna/DNA_scene_types.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/source/blender/makesdna/DNA_scene_types.h b/source/blender/makesdna/DNA_scene_types.h index f73f99eb4e7..472b2e9fa7f 100644 --- a/source/blender/makesdna/DNA_scene_types.h +++ b/source/blender/makesdna/DNA_scene_types.h @@ -558,8 +558,9 @@ typedef struct BakeData { char normal_swizzle[3]; char normal_space; + char target; char save_mode; - char _pad[7]; + char _pad[6]; struct Object *cage_object; } BakeData; @@ -574,6 +575,12 @@ typedef enum eBakeNormalSwizzle { R_BAKE_NEGZ = 5, } eBakeNormalSwizzle; +/* BakeData.target (char) */ +typedef enum eBakeTarget { + R_BAKE_TARGET_IMAGE_TEXTURES = 0, + R_BAKE_TARGET_VERTEX_COLORS = 1, +} eBakeTarget; + /* BakeData.save_mode (char) */ typedef enum eBakeSaveMode { R_BAKE_SAVE_INTERNAL = 0, |