Solidify modifier: add option to assign shell & rim geometry to selected vertex groups.

This commit gives the solidify modifier the ability to assign the newly created shell
and rim geometries to selected vertex groups. This expands the procedural control over
the modifier stack by letting users apply modifiers to the shell geometry without affecting
the original geometry.

This will be especially helpful for NPR users that use solidify to create backface
culling lines on their characters giving them the ability to add displace noise
and other effects.

Differential Revision: https://developer.blender.org/D6903
This commit is contained in:
Cody Winchester
2020-03-27 10:56:14 +01:00
committed by Bastien Montagne
parent ba1f7acc3f
commit bd86edf116
6 changed files with 113 additions and 1 deletions

View File

@@ -1072,6 +1072,17 @@ class DATA_PT_modifiers(ModifierButtonsPanel, Panel):
row.active = md.use_rim
row.prop(md, "material_offset_rim", text="Rim")
col.separator()
row = col.row(align=True)
row.label(text="Shell Vertex Group:")
row = col.row(align=True)
row.prop_search(md, "shell_vertex_group", ob, "vertex_groups", text="")
row = col.row(align=True)
row.label(text="Rim Vertex Group:")
row = col.row(align=True)
row.prop_search(md, "rim_vertex_group", ob, "vertex_groups", text="")
def SUBSURF(self, layout, ob, md):
from bpy import context
layout.row().prop(md, "subdivision_type", expand=True)