[Bf-blender-cvs] [794aef3f259] master: Fix T58763: Sample color fails with mirror modifier

Campbell Barton noreply at git.blender.org
Mon Mar 18 10:18:00 CET 2019


Commit: 794aef3f259ef0833e45d9cfd40ba6fe2b08b376
Author: Campbell Barton
Date:   Mon Mar 18 20:01:59 2019 +1100
Branches: master
https://developer.blender.org/rB794aef3f259ef0833e45d9cfd40ba6fe2b08b376

Fix T58763: Sample color fails with mirror modifier

===================================================================

M	source/blender/editors/sculpt_paint/paint_utils.c

===================================================================

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};



More information about the Bf-blender-cvs mailing list