Workbench: if no material is available, use color 0.8 like default material.

This commit is contained in:
Brecht Van Lommel
2018-05-06 15:58:01 +02:00
parent 4462c38e55
commit 37c5145ef2

View File

@@ -183,7 +183,7 @@ static void workbench_init_object_data(ObjectEngineData *engine_data)
static void get_material_solid_color(WORKBENCH_PrivateData *wpd, Object *ob, Material *mat, float *color, float hsv_saturation, float hsv_value)
{
static float default_color[] = {1.0f, 1.0f, 1.0f};
static float default_color[] = {0.8f, 0.8f, 0.8f};
if (DRW_object_is_paint_mode(ob) || wpd->shading.color_type == V3D_SHADING_SINGLE_COLOR) {
copy_v3_v3(color, wpd->shading.single_color);
}