[Bf-blender-cvs] [8042e5405ed] greasepencil-object: GP: Fix bug when start new file and select Arc primitive

Antonioya noreply at git.blender.org
Thu Dec 13 13:20:48 CET 2018


Commit: 8042e5405ed78c0fd4f76905ecd9ffe1f6e7e70f
Author: Antonioya
Date:   Thu Dec 13 13:20:38 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rB8042e5405ed78c0fd4f76905ecd9ffe1f6e7e70f

GP: Fix bug when start new file and select Arc primitive

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

M	source/blender/editors/gpencil/gpencil_primitive.c

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

diff --git a/source/blender/editors/gpencil/gpencil_primitive.c b/source/blender/editors/gpencil/gpencil_primitive.c
index 6b693274f1c..a545dfcba18 100644
--- a/source/blender/editors/gpencil/gpencil_primitive.c
+++ b/source/blender/editors/gpencil/gpencil_primitive.c
@@ -876,6 +876,8 @@ static void gpencil_primitive_init(bContext *C, wmOperator *op)
 
 	/* set GP datablock */
 	tgpi->gpd = gpd;
+	/* region where paint was originated */
+	tgpi->gpd->runtime.ar = tgpi->ar;
 
 	/* control points */
 	tgpi->gpd->runtime.cp_points = MEM_callocN(sizeof(bGPDcontrolpoint) * MAX_CP, "gp primitive cpoint");



More information about the Bf-blender-cvs mailing list