diff options
author | Clément Foucault <foucault.clem@gmail.com> | 2019-05-04 16:23:53 +0300 |
---|---|---|
committer | Clément Foucault <foucault.clem@gmail.com> | 2019-05-06 23:33:05 +0300 |
commit | 8b6afcb67b6ce4d7b28f01382b6b00b481dbc64e (patch) | |
tree | 4c18c8b5a9629fd46f98fb7c5ade07ddb0638fb2 /source/blender/draw | |
parent | 50999f7fb0964839225f05f0f23cbd6e806226d4 (diff) |
Cleanup: Eevee: Remove comment about vcol support in sculpt mode
Diffstat (limited to 'source/blender/draw')
-rw-r--r-- | source/blender/draw/engines/eevee/eevee_materials.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/source/blender/draw/engines/eevee/eevee_materials.c b/source/blender/draw/engines/eevee/eevee_materials.c index c55f3f0150c..c195732aaf8 100644 --- a/source/blender/draw/engines/eevee/eevee_materials.c +++ b/source/blender/draw/engines/eevee/eevee_materials.c @@ -1686,10 +1686,11 @@ void EEVEE_materials_cache_populate(EEVEE_Data *vedata, } if (is_sculpt_mode) { - /* TODO(fclem): Support Vcol. */ - DRW_shgroup_call_sculpt_with_materials_add(shgrp_array, ma_array, ob, false); - DRW_shgroup_call_sculpt_with_materials_add(shgrp_depth_array, ma_array, ob, false); - DRW_shgroup_call_sculpt_with_materials_add(shgrp_depth_clip_array, ma_array, ob, false); + /* Vcol is not supported in the modes that require PBVH drawing. */ + bool use_vcol = false; + DRW_shgroup_call_sculpt_with_materials_add(shgrp_array, ma_array, ob, use_vcol); + DRW_shgroup_call_sculpt_with_materials_add(shgrp_depth_array, ma_array, ob, use_vcol); + DRW_shgroup_call_sculpt_with_materials_add(shgrp_depth_clip_array, ma_array, ob, use_vcol); /* TODO(fclem): Support shadows in sculpt mode. */ } else if (mat_geom) { |