Cleanup: remove unused vpaint projection handle

This commit is contained in:
Campbell Barton 2017-10-03 23:43:30 +11:00
parent a4721c0504
commit 7ae02c2ddb
1 changed files with 0 additions and 10 deletions

View File

@ -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)