[Bf-blender-cvs] [e3af67703ea] greasepencil-object: Cleanup unused code block

Antonio Vazquez noreply at git.blender.org
Thu Mar 22 16:20:43 CET 2018


Commit: e3af67703ea0429b27700ca6918d9df8844738db
Author: Antonio Vazquez
Date:   Thu Mar 22 16:13:54 2018 +0100
Branches: greasepencil-object
https://developer.blender.org/rBe3af67703ea0429b27700ca6918d9df8844738db

Cleanup unused code block

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

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 451478840bb..75fd24ce556 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_cache_impl.c
@@ -774,16 +774,6 @@ static void gpencil_draw_strokes(GpencilBatchCache *cache, GPENCIL_e_data *e_dat
 			}
 		}
 
-#if 0   /* if we use the reallocate the shading group is doing weird thing, so disable while find a solution 
-		   and allocate the max size on cache_init */
-		   /* realloc memory */
-		GPENCIL_shgroup *p = NULL;
-		int size = stl->storage->shgroup_id + 1;
-		p = MEM_recallocN(stl->shgroups, sizeof(struct GPENCIL_shgroup) * size);
-		if (p != NULL) {
-			stl->shgroups = p;
-		}
-#endif
 		if ((gpl->actframe->framenum == derived_gpf->framenum) || (!is_multiedit) || ((gpd->flag & GP_DATA_STROKE_MULTIEDIT_LINES) == 0)) {
 			int id = stl->storage->shgroup_id;
 			if (gps->totpoints > 0) {



More information about the Bf-blender-cvs mailing list