Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntony Riakiotakis <kalast@gmail.com>2015-02-11 17:07:04 +0300
committerAntony Riakiotakis <kalast@gmail.com>2015-02-11 17:07:24 +0300
commitf7e131a6acd800a311e50b680e5be6d9824a1df7 (patch)
tree30cbe9ff93d0e59d806df735a83ba0f3d4df99a1 /release/scripts/startup/bl_ui
parentb7bac19acaa41567967a43ae8aa8756e23f27a83 (diff)
Cavity masking - add curve control to cavity mask and move relevant
structs to paint struct (might be useful for vertex paint too in the future) Cavity masking now has a curve control. The control will set the amount of masking for positive cavity ("pointness") or negative cavity ("cavity") with x axis being the amount of cavity and 0.0 = full cavity, 1.0 = full pointness, 0.5 = no cavity and the y axis being the amount of alpha.
Diffstat (limited to 'release/scripts/startup/bl_ui')
-rw-r--r--release/scripts/startup/bl_ui/space_view3d_toolbar.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
index 7af8be108c1..c0baeafe5fc 100644
--- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py
+++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py
@@ -1722,10 +1722,8 @@ class VIEW3D_PT_tools_projectpaint(View3DPaintPanel, Panel):
sub.prop(ipaint, "normal_angle", text="")
layout.prop(ipaint, "use_cavity")
- sub = layout.column()
- sub.active = (ipaint.use_cavity)
- sub.prop(ipaint, "cavity_mul", slider=True)
- sub.prop(ipaint, "invert_cavity")
+ if ipaint.use_cavity:
+ layout.template_curve_mapping(ipaint, "cavity_curve", brush=True)
layout.prop(ipaint, "seam_bleed")
layout.prop(ipaint, "dither")