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 /intern/cycles/blender/addon | |
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 'intern/cycles/blender/addon')
-rw-r--r-- | intern/cycles/blender/addon/ui.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/intern/cycles/blender/addon/ui.py b/intern/cycles/blender/addon/ui.py index 1bddacbb7a0..579f0c1b040 100644 --- a/intern/cycles/blender/addon/ui.py +++ b/intern/cycles/blender/addon/ui.py @@ -1969,9 +1969,11 @@ class CYCLES_RENDER_PT_bake_output(CyclesButtonsPanel, Panel): if rd.bake_type == 'DISPLACEMENT': layout.prop(rd, "use_bake_lores_mesh") else: + layout.prop(cbk, "target") - layout.prop(cbk, "margin") - layout.prop(cbk, "use_clear", text="Clear Image") + if cbk.target == 'IMAGE_TEXTURES': + layout.prop(cbk, "margin") + layout.prop(cbk, "use_clear", text="Clear Image") class CYCLES_RENDER_PT_debug(CyclesButtonsPanel, Panel): |