Workbench: Matcaps T55291

- users can use their own matcaps
.config/blender/2.80/datafiles/studiolights/matcap/ folder
- upto 100 matcaps can be loaded
- color of the matcap is influenced by the color of the material/single
color etc. To show the plain matcap use single color at 1.0
- chosing a matcap is at lighting level (flat/studio/matcap)
- matcap only possible in solid mode
- also works for X-Ray mode

As the old matcaps are still in used by the clay engine I didn't remove
it yet.
This commit is contained in:
2018-06-05 08:15:30 +02:00
parent ade710500d
commit a3815f8777
41 changed files with 538 additions and 183 deletions

View File

@@ -3518,12 +3518,6 @@ class VIEW3D_PT_shading(Panel):
col = layout.column()
if shading.type == 'SOLID':
col.row().prop(shading, "color_type", expand=True)
if shading.color_type == 'SINGLE':
col.row().prop(shading, "single_color", text="")
if shading.type in ('SOLID', 'TEXTURED'):
col.row().prop(shading, "light", expand=True)
if shading.light == 'STUDIO':
@@ -3531,11 +3525,20 @@ class VIEW3D_PT_shading(Panel):
if shading.studio_light_orientation == 'WORLD':
col.row().prop(shading, "studiolight_rot_z")
elif shading.light == 'MATCAP':
col.row().template_icon_view(shading, "matcap")
if shading.type == 'SOLID':
col.row().prop(shading, "color_type", expand=True)
if shading.color_type == 'SINGLE':
col.row().prop(shading, "single_color", text="")
if not(shading.type == 'SOLID' and shading.light == 'MATCAP'):
row = col.row()
row.prop(shading, "show_specular_highlight")
col.separator()
if shading.type in ('SOLID', 'TEXTURED'):
row = col.row()
row.prop(shading, "show_xray")
sub = row.row()