GPencil: Use default material when slot material is empty

When a material slot is empty, the default material is used.

The default color used is Gray to get a good contrast in dense scenes with dark and white background.

Reviewers: brecht, dfelinto, mendio, pepeland

Differential Revision: https://developer.blender.org/D5625
This commit is contained in:
2019-08-30 14:19:07 +02:00
parent 4608220c9b
commit d5d3dc4189
15 changed files with 129 additions and 49 deletions

View File

@@ -524,6 +524,7 @@ void WM_exit_ex(bContext *C, const bool do_python)
BKE_addon_pref_type_free();
BKE_keyconfig_pref_type_free();
BKE_material_gpencil_default_free();
wm_operatortype_free();
wm_dropbox_free();