diff options
author | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-03 10:59:06 +0300 |
---|---|---|
committer | Sergey Sharybin <sergey.vfx@gmail.com> | 2017-10-03 10:59:06 +0300 |
commit | 2bfa061a15762e93f0391e3348f58bcfa512d8fc (patch) | |
tree | b3d51e85572e3272c1e0a4c1817d011f61f81386 /release | |
parent | 21369429168c5799125a63ef728947f4fd6668e9 (diff) | |
parent | 2b3ff61d805ccbb219e773e1a5c69e02b0c90109 (diff) |
Merge branch 'master' into blender2.8
Notes:
- Changes in paint_vertex.c were simple to merge, mainly related on passing
evaluation context.
- Conflicts in EditDM and drawmesh.c are solved using code from blender2.8
branch. Those areas are deprecated and not to be used in final release.
However, it's possible that some reference code from master is lost, so
keep attention when adding alpha support for vertex painting.
Diffstat (limited to 'release')
-rw-r--r-- | release/scripts/startup/bl_ui/space_view3d_toolbar.py | 29 |
1 files changed, 19 insertions, 10 deletions
diff --git a/release/scripts/startup/bl_ui/space_view3d_toolbar.py b/release/scripts/startup/bl_ui/space_view3d_toolbar.py index 0114d96af48..b7e2b5b6051 100644 --- a/release/scripts/startup/bl_ui/space_view3d_toolbar.py +++ b/release/scripts/startup/bl_ui/space_view3d_toolbar.py @@ -1761,9 +1761,16 @@ class VIEW3D_PT_tools_weightpaint_options(Panel, View3DPaintPanel): wpaint = tool_settings.weight_paint col = layout.column() + col.label("Falloff:") row = col.row() - - row.prop(wpaint, "use_normal") + row.prop(wpaint, "falloff_shape", expand=True) + row = col.row() + row.prop(wpaint, "use_backface_culling") + row = col.row() + row.prop(wpaint, "use_normal_falloff") + sub = row.row() + sub.active = (wpaint.use_normal_falloff) + sub.prop(wpaint, "normal_angle", text="") col = layout.column() row = col.row() row.prop(wpaint, "use_spray") @@ -1798,19 +1805,21 @@ class VIEW3D_PT_tools_vertexpaint(Panel, View3DPaintPanel): vpaint = toolsettings.vertex_paint col = layout.column() + col.label("Falloff:") + row = col.row() + row.prop(vpaint, "falloff_shape", expand=True) row = col.row() - # col.prop(vpaint, "mode", text="") - row.prop(vpaint, "use_normal") + row.prop(vpaint, "use_backface_culling") + row = col.row() + row.prop(vpaint, "use_normal_falloff") + sub = row.row() + sub.active = (vpaint.use_normal_falloff) + sub.prop(vpaint, "normal_angle", text="") + col.prop(vpaint, "use_spray") self.unified_paint_settings(col, context) -# Commented out because the Apply button isn't an operator yet, making these settings useless -#~ col.label(text="Gamma:") -#~ col.prop(vpaint, "gamma", text="") -#~ col.label(text="Multiply:") -#~ col.prop(vpaint, "mul", text="") - class VIEW3D_PT_tools_vertexpaint_symmetry(Panel, View3DPaintPanel): bl_category = "Tools" |