[Bf-blender-cvs] [4bc23089595] greasepencil-object: Cleanup unused code
Antonio Vazquez
noreply at git.blender.org
Wed May 17 16:51:46 CEST 2017
Commit: 4bc23089595e802225171ce537b67a1807e19b27
Author: Antonio Vazquez
Date: Wed May 17 16:51:38 2017 +0200
Branches: greasepencil-object
https://developer.blender.org/rB4bc23089595e802225171ce537b67a1807e19b27
Cleanup unused code
===================================================================
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 ec506034456..b886cbb6917 100644
--- a/source/blender/draw/engines/gpencil/gpencil_engine.c
+++ b/source/blender/draw/engines/gpencil/gpencil_engine.c
@@ -101,15 +101,6 @@ static void GPENCIL_engine_free(void)
/* only free custom shaders, builtin shaders are freed in blender close */
DRW_SHADER_FREE_SAFE(e_data.gpencil_fill_sh);
DRW_SHADER_FREE_SAFE(e_data.gpencil_stroke_sh);
-
- // TODO: When load new file, the previous GPD is not cleared
- /* free all cache data */
- //for (bGPdata *gpd = e_data.bmain->gpencil.first; gpd; gpd = gpd->id.next) {
- // if (gpd->batch_cache) {
- // gpencil_batch_cache_clear(gpd);
- // MEM_SAFE_FREE(gpd->batch_cache);
- // }
- //}
}
static void GPENCIL_cache_init(void *vedata)
More information about the Bf-blender-cvs
mailing list