diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-09 19:51:14 +0400 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2013-10-09 19:51:14 +0400 |
commit | d917bdb095573161522194449fc22f6809e5b5b2 (patch) | |
tree | 515874d441bd5547480e1a4714c45c03cb23ed2e /release | |
parent | 1255b1e82dae4db4cc6f1fab1e80e831cbee583b (diff) |
Derivative map baker
Added support for derivative map baking, which
is accessable as a dedicated baker type. Works
pretty much the same as displacement map baker,
but gives you derivative map.
In fact, inernally this baker is just a filter
which applies on the result of displacement map.
Both regular and multires baking are supported.
Patch by Morten Mikkelsen and self.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/properties_render.py | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/release/scripts/startup/bl_ui/properties_render.py b/release/scripts/startup/bl_ui/properties_render.py index e11f179e2cb..288f95ca4b0 100644 --- a/release/scripts/startup/bl_ui/properties_render.py +++ b/release/scripts/startup/bl_ui/properties_render.py @@ -501,7 +501,7 @@ class RENDER_PT_bake(RenderButtonsPanel, Panel): layout.prop(rd, "bake_type") multires_bake = False - if rd.bake_type in ['NORMALS', 'DISPLACEMENT', 'AO']: + if rd.bake_type in ['NORMALS', 'DISPLACEMENT', 'DERIVATIVE', 'AO']: layout.prop(rd, "use_bake_multires") multires_bake = rd.use_bake_multires @@ -542,11 +542,20 @@ class RENDER_PT_bake(RenderButtonsPanel, Panel): if rd.bake_type == 'DISPLACEMENT': col = split.column() col.prop(rd, "use_bake_lores_mesh") + if rd.bake_type == 'AO': col = split.column() col.prop(rd, "bake_bias") col.prop(rd, "bake_samples") + if rd.bake_type == 'DERIVATIVE': + row = layout.row() + row.prop(rd, "use_bake_user_scale", text="") + + sub = row.column() + sub.active = rd.use_bake_user_scale + sub.prop(rd, "bake_user_scale", text="User Scale") + if __name__ == "__main__": # only for live edit. bpy.utils.register_module(__name__) |