Fix weight painting + mask not drawing in latest master.
Same issue as vertex painting - though one might wonder if we really need to set material on such occasions.
This commit is contained in:
parent
0795f62ddf
commit
0b7d0f913d
Notes:
blender-bot
2023-02-14 08:46:17 +01:00
Referenced by issue #45788, baked texture not updating in viewport after using undo
|
@ -1220,11 +1220,13 @@ static void draw_mesh_paint_light_end(void)
|
|||
void draw_mesh_paint_weight_faces(DerivedMesh *dm, const bool use_light,
|
||||
void *facemask_cb, void *user_data)
|
||||
{
|
||||
DMSetMaterial setMaterial = GPU_object_materials_check() ? GPU_enable_material : NULL;
|
||||
|
||||
if (use_light) {
|
||||
draw_mesh_paint_light_begin();
|
||||
}
|
||||
|
||||
dm->drawMappedFaces(dm, (DMSetDrawOptions)facemask_cb, GPU_enable_material, NULL, user_data,
|
||||
dm->drawMappedFaces(dm, (DMSetDrawOptions)facemask_cb, setMaterial, NULL, user_data,
|
||||
DM_DRAW_USE_COLORS);
|
||||
|
||||
if (use_light) {
|
||||
|
|
Loading…
Reference in New Issue