Changeset View
Changeset View
Standalone View
Standalone View
source/blender/draw/engines/overlay/overlay_sculpt.cc
| Show First 20 Lines • Show All 47 Lines • ▼ Show 20 Lines | void OVERLAY_sculpt_cache_populate(OVERLAY_Data *vedata, Object *ob) | ||||
| if (!pbvh_has_mask(pbvh) && !pbvh_has_face_sets(pbvh)) { | if (!pbvh_has_mask(pbvh) && !pbvh_has_face_sets(pbvh)) { | ||||
| /* The SculptSession and the PBVH can be created without a Mask data-layer or Face Set | /* The SculptSession and the PBVH can be created without a Mask data-layer or Face Set | ||||
| * data-layer. (masks data-layers are created after using a mask tool), so in these cases there | * data-layer. (masks data-layers are created after using a mask tool), so in these cases there | ||||
| * is nothing to draw. */ | * is nothing to draw. */ | ||||
| return; | return; | ||||
| } | } | ||||
| if (use_pbvh) { | if (use_pbvh) { | ||||
| DRW_shgroup_call_sculpt(pd->sculpt_mask_grp, ob, false, true); | DRW_shgroup_call_sculpt(pd->sculpt_mask_grp, ob, false, true, true, false, false); | ||||
| } | } | ||||
| else { | else { | ||||
| sculpt_overlays = DRW_mesh_batch_cache_get_sculpt_overlays(static_cast<Mesh *>(ob->data)); | sculpt_overlays = DRW_mesh_batch_cache_get_sculpt_overlays(static_cast<Mesh *>(ob->data)); | ||||
| if (sculpt_overlays) { | if (sculpt_overlays) { | ||||
| DRW_shgroup_call(pd->sculpt_mask_grp, sculpt_overlays, ob); | DRW_shgroup_call(pd->sculpt_mask_grp, sculpt_overlays, ob); | ||||
| } | } | ||||
| } | } | ||||
| } | } | ||||
| Show All 13 Lines | |||||