Commit: 23bbab6bdcebaa8a4637204552098b14f93bec43
Author: Joshua Leung
Date: Thu Oct 23 17:58:24 2014 +1300
Branches: GPencil_EditStrokes
https://developer.blender.org/rB23bbab6bdcebaa8a4637204552098b14f93bec43
Bugfix: Fix for potentially uninitialised matrix, and 2D eraser being broken
following recent changes
===================================================================
M source/blender/editors/gpencil/gpencil_paint.c
===================================================================
diff --git a/source/blender/editors/gpencil/gpencil_paint.c
b/source/blender/editors/gpencil/gpencil_paint.c
index 605c74f..401110f 100644
--- a/source/blender/editors/gpencil/gpencil_paint.c
+++ b/source/blender/editors/gpencil/gpencil_paint.c
@@ -1018,6 +1018,7 @@ static int gp_session_initdata(bContext *C, tGPsdata *p)
p->win = CTX_wm_window(C);
unit_m4(p->imat);
+ unit_m4(p->mat);
switch (curarea->spacetype) {
/* supported views first */
@@ -1254,6 +1255,8 @@ static void gp_paint_initstroke(tGPsdata *p, short
paintmode)
p->gsc.subrect_data = p->subrect_data;
p->gsc.subrect = p->subrect;
+ copy_m4_m4(p->gsc.mat, p->mat);
+
/* check if points will need to be made in view-aligned space */
if (p->gpd->flag & GP_DATA_VIEWALIGN) {
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
http://lists.blender.org/mailman/listinfo/bf-blender-cvs