[Bf-blender-cvs] [dc57862] soc-2016-pbvh-painting: Fixed bug where projection handle for vertex paint wasn't being allocated, causing texture paint to crash.

Nathan Vollmer noreply at git.blender.org
Wed Nov 30 19:48:45 CET 2016


Commit: dc57862948824366433dd3571657c25be5f09099
Author: Nathan Vollmer
Date:   Wed Nov 30 11:48:37 2016 -0700
Branches: soc-2016-pbvh-painting
https://developer.blender.org/rBdc57862948824366433dd3571657c25be5f09099

Fixed bug where projection handle for vertex paint wasn't being allocated, causing texture paint to crash.

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

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 650783b..59e3dd1 100644
--- a/source/blender/editors/sculpt_paint/paint_vertex.c
+++ b/source/blender/editors/sculpt_paint/paint_vertex.c
@@ -3036,6 +3036,9 @@ static bool vpaint_stroke_test_start(bContext *C, struct wmOperator *op, const f
 		vpd->mlooptag = MEM_mallocN(sizeof(bool) * me->totloop, "VPaintData mlooptag");
 	}
 
+	/* Create projection handle */
+	vpd->vp_handle = ED_vpaint_proj_handle_create(scene, ob, &vpd->vertexcosnos);
+
 	/* some old cruft to sort out later */
 	mul_m4_m4m4(mat, vpd->vc.rv3d->viewmat, ob->obmat);
 	invert_m4_m4(imat, mat);




More information about the Bf-blender-cvs mailing list