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

_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs

Reply via email to