From 5e0e62f0407e15c936bae92d8fec043adee6ab07 Mon Sep 17 00:00:00 2001 From: Alex Fraser Date: Wed, 2 Jan 2013 00:05:30 +0000 Subject: Patch [#29035] Vertex colour baking There is a new option in the Bake panel to enable baking to vertex colors. Unlike regular baking, this mode does not require a UV map or image to bake to, however the object must have a vertex color layer. Thanks to: - AutoCRC for funding - Brech van Lommel and Dalai Felinto for their initial advice on how to implement it - Campbell Barton for helping to make this feature work with modifiers and bmesh --- release/scripts/startup/bl_ui/properties_render.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'release/scripts/startup/bl_ui/properties_render.py') diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index 8dfa954dade..03b3d41b631 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -609,9 +609,12 @@ class RENDER_PT_bake(RenderButtonsPanel, Panel): split = layout.split() col = split.column() - col.prop(rd, "use_bake_clear") - col.prop(rd, "bake_margin") - col.prop(rd, "bake_quad_split", text="Split") + col.prop(rd, "use_bake_to_vertex_color") + sub = col.column() + sub.active = not rd.use_bake_to_vertex_color + sub.prop(rd, "use_bake_clear") + sub.prop(rd, "bake_margin") + sub.prop(rd, "bake_quad_split", text="Split") col = split.column() col.prop(rd, "use_bake_selected_to_active") -- cgit v1.2.3