diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-18 12:01:59 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-18 12:16:21 +0300 |
commit | 794aef3f259ef0833e45d9cfd40ba6fe2b08b376 (patch) | |
tree | a1b94087470e813eba3e890a13f88be902760e4b /source/blender/editors/sculpt_paint/paint_utils.c | |
parent | 1d1e06b376eef66923b5e3a6e134a0bbbeb6c754 (diff) |
Fix T58763: Sample color fails with mirror modifier
Diffstat (limited to 'source/blender/editors/sculpt_paint/paint_utils.c')
-rw-r--r-- | source/blender/editors/sculpt_paint/paint_utils.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/source/blender/editors/sculpt_paint/paint_utils.c b/source/blender/editors/sculpt_paint/paint_utils.c index 7de8e6bb07f..b1088e3a957 100644 --- a/source/blender/editors/sculpt_paint/paint_utils.c +++ b/source/blender/editors/sculpt_paint/paint_utils.c @@ -460,8 +460,11 @@ void paint_sample_color(bContext *C, ARegion *ar, int x, int y, bool texpaint_pr bool use_material = (imapaint->mode == IMAGEPAINT_MODE_MATERIAL); if (ob) { + CustomData_MeshMasks cddata_masks = CD_MASK_BAREMESH; + cddata_masks.pmask |= CD_MASK_ORIGINDEX; Mesh *me = (Mesh *)ob->data; - Mesh *me_eval = ob_eval->runtime.mesh_eval; + CustomData_MeshMasks mask, nextmask, previewmask = {0}, append_mask = CD_MASK_BAREMESH_ORIGINDEX; + Mesh *me_eval = mesh_get_eval_final(depsgraph, scene, ob_eval, &cddata_masks); ViewContext vc; const int mval[2] = {x, y}; |