diff options
author | Alex Fraser <alex@phatcore.com> | 2013-01-02 04:05:30 +0400 |
---|---|---|
committer | Alex Fraser <alex@phatcore.com> | 2013-01-02 04:05:30 +0400 |
commit | 5e0e62f0407e15c936bae92d8fec043adee6ab07 (patch) | |
tree | 96bfb5f997b68085ecc1f65cc1ce64b688fd500b /release/scripts/startup/bl_ui | |
parent | 7085387defb2e9ae90bdf3ed625f056d616fac6b (diff) |
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
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 9 |
1 files changed, 6 insertions, 3 deletions
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") |