[Bf-blender-cvs] [e56a139e02f] greasepencil-object: Fix typo causing crashes when trying to draw GP objects

Joshua Leung noreply at git.blender.org
Sat Nov 4 05:47:38 CET 2017


Commit: e56a139e02f771b820eb326d3ec568cf4d471d9c
Author: Joshua Leung
Date:   Sun Oct 29 19:16:10 2017 +1300
Branches: greasepencil-object
https://developer.blender.org/rBe56a139e02f771b820eb326d3ec568cf4d471d9c

Fix typo causing crashes when trying to draw GP objects

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

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 44ccc7fef93..2d533f91c4f 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -272,7 +272,7 @@ static void GPENCIL_cache_init(void *vedata)
 		/* detect if painting session */
 		bGPdata *obact_gpd = NULL;
 		if ((obact) && (obact->type == OB_GPENCIL) && (obact->data))
-			obact_gpd = ob->data;
+			obact_gpd = obact->data;
 		
 		if ((obact_gpd) && (obact_gpd->flag & GP_DATA_STROKE_PAINTMODE) &&
 		    (stl->storage->playing == 0) &&



More information about the Bf-blender-cvs mailing list