Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-03-18 12:01:59 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-03-18 12:16:21 +0300
commit794aef3f259ef0833e45d9cfd40ba6fe2b08b376 (patch)
treea1b94087470e813eba3e890a13f88be902760e4b
parent1d1e06b376eef66923b5e3a6e134a0bbbeb6c754 (diff)
Fix T58763: Sample color fails with mirror modifier
-rw-r--r--source/blender/editors/sculpt_paint/paint_utils.c5
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};