[Bf-blender-cvs] [cba86fbd77c] greasepencil-object: Fixing gpencil screen drawing after warning cleanup

Dalai Felinto noreply at git.blender.org
Mon May 8 14:56:12 CEST 2017


Commit: cba86fbd77c1fb54a16277d72ebc10734dc4f411
Author: Dalai Felinto
Date:   Mon May 8 14:54:31 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rBcba86fbd77c1fb54a16277d72ebc10734dc4f411

Fixing gpencil screen drawing after warning cleanup

I find strange that this needs to be static, and can see this being an issue
for simultaneous drawing in the future. That said, better leave it
working as before.

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

M	source/blender/draw/engines/gpencil/gpencil_engine.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_engine.c b/source/blender/draw/engines/gpencil/gpencil_engine.c
index 1bc105bf3a3..0f2675a00b4 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -458,7 +458,7 @@ static void gpencil_draw_buffer_strokes(void *vedata, ToolSettings *ts, bGPdata
 			* i.e. tGPspoints NOT bGPDspoints
 			*/
 			short lthick = brush->thickness;
-			float matrix[4][4];
+			static float matrix[4][4];
 			unit_m4(matrix);
 
 			if (gpd->sbuffer_size == 1) {




More information about the Bf-blender-cvs mailing list