[Bf-blender-cvs] [95c2c1c06f1] greasepencil-object: Initialize index fields for shgroups

Antonio Vazquez noreply at git.blender.org
Tue Jun 27 13:02:37 CEST 2017


Commit: 95c2c1c06f12e6166a992bea98b9ff3c6558a008
Author: Antonio Vazquez
Date:   Tue Jun 27 13:02:30 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB95c2c1c06f12e6166a992bea98b9ff3c6558a008

Initialize index fields for shgroups

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

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

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
index 50354161091..15fa8d41a5a 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -74,6 +74,8 @@ void gpencil_object_cache_add(tGPencilObjectCache *cache, Object *ob, int *gp_ca
 {
 	/* save object */
 	cache[*gp_cache_used].ob = ob;
+	cache[*gp_cache_used].init_grp = 0;
+	cache[*gp_cache_used].end_grp = -1;
 
 	/* increase slots used in cache */
 	++*gp_cache_used;




More information about the Bf-blender-cvs mailing list