[Bf-blender-cvs] [7ae02c2ddb2] master: Cleanup: remove unused vpaint projection handle

Campbell Barton noreply at git.blender.org
Tue Oct 3 14:29:29 CEST 2017


Commit: 7ae02c2ddb2ce72fd1c33a2f8aeeb26b20efd375
Author: Campbell Barton
Date:   Tue Oct 3 23:43:30 2017 +1100
Branches: master
https://developer.blender.org/rB7ae02c2ddb2ce72fd1c33a2f8aeeb26b20efd375

Cleanup: remove unused vpaint projection handle

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

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

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

diff --git a/source/blender/editors/sculpt_paint/paint_vertex.c b/source/blender/editors/sculpt_paint/paint_vertex.c
index 57fe8cab712..a6b41b51ca6 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -1183,9 +1183,6 @@ struct WPaintData {
 
 	struct WeightPaintGroupData active, mirror;
 
-	void *vp_handle;
-	DMCoNo *vertexcosnos;
-
 	float wpimat[3][3];
 
 	/* variables for auto normalize */
@@ -1448,11 +1445,6 @@ static bool wpaint_stroke_test_start(bContext *C, wmOperator *op, const float mo
 		wpd->smear.weight_curr = MEM_dupallocN(wpd->smear.weight_prev);
 	}
 
-	/* painting on subsurfs should give correct points too, this returns me->totvert amount */
-	ob->sculpt->building_vp_handle = true;
-	wpd->vp_handle = ED_vpaint_proj_handle_create(scene, ob, &wpd->vertexcosnos);
-	ob->sculpt->building_vp_handle = false;
-
 	/* imat for normals */
 	mul_m4_m4m4(mat, wpd->vc.rv3d->viewmat, ob->obmat);
 	invert_m4_m4(imat, mat);
@@ -2113,8 +2105,6 @@ static void wpaint_stroke_done(const bContext *C, struct PaintStroke *stroke)
 	struct WPaintData *wpd = paint_stroke_mode_data(stroke);
 
 	if (wpd) {
-		ED_vpaint_proj_handle_free(wpd->vp_handle);
-
 		if (wpd->defbase_sel)
 			MEM_freeN((void *)wpd->defbase_sel);
 		if (wpd->vgroup_validmap)



More information about the Bf-blender-cvs mailing list