[Bf-blender-cvs] [b10c14d1439] tmp-drw-callbatching: Workbench: Fix dark mesh when no material applied

Clément Foucault noreply at git.blender.org
Sat Aug 17 14:51:08 CEST 2019


Commit: b10c14d14394590402c1a76bf3caebf805e47ff8
Author: Clément Foucault
Date:   Wed Aug 7 12:28:30 2019 +0200
Branches: tmp-drw-callbatching
https://developer.blender.org/rBb10c14d14394590402c1a76bf3caebf805e47ff8

Workbench: Fix dark mesh when no material applied

===================================================================

M	source/blender/draw/engines/workbench/workbench_materials.c

===================================================================

diff --git a/source/blender/draw/engines/workbench/workbench_materials.c b/source/blender/draw/engines/workbench/workbench_materials.c
index 6a26c417880..e894d084300 100644
--- a/source/blender/draw/engines/workbench/workbench_materials.c
+++ b/source/blender/draw/engines/workbench/workbench_materials.c
@@ -78,6 +78,9 @@ void workbench_material_update_data(WORKBENCH_PrivateData *wpd,
         data->roughness = sqrtf(mat->roughness); /* Remap to disney roughness. */
       }
     }
+    else {
+      copy_v3_fl(data->base_color, 0.8f);
+    }
   }
 }



More information about the Bf-blender-cvs mailing list