From 59a1ebabcd2e5941fa89d06d7ca2c6c669b417bd Mon Sep 17 00:00:00 2001 From: Joshua Leung Date: Thu, 19 Apr 2018 16:28:27 +0200 Subject: Cleanup: Remove the "SpaceTime->caches" and "SpaceTimeCache" stuff These were runtime only data, used in pre 2.8 Blender to make use of GL vertex arrays to draw these more efficiently. Maybe we might restore these sometime as an optimisation step, but for now, they're not needing and were confusing. --- source/blender/editors/space_time/space_time.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'source/blender/editors/space_time') diff --git a/source/blender/editors/space_time/space_time.c b/source/blender/editors/space_time/space_time.c index 42027f10fe6..6882fcd396f 100644 --- a/source/blender/editors/space_time/space_time.c +++ b/source/blender/editors/space_time/space_time.c @@ -132,8 +132,7 @@ static void time_draw_cache(SpaceTime *stime, Object *ob, Scene *scene) unsigned int pos = GWN_vertformat_attr_add(immVertexFormat(), "pos", GWN_COMP_F32, 2, GWN_FETCH_FLOAT); immBindBuiltinProgram(GPU_SHADER_2D_UNIFORM_COLOR); - /* iterate over pointcaches on the active object, - * add spacetimecache and vertex array for each */ + /* iterate over pointcaches on the active object, drawing */ for (pid = pidlist.first; pid; pid = pid->next) { float col[4]; @@ -811,8 +810,6 @@ static SpaceLink *time_duplicate(SpaceLink *sl) SpaceTime *stime = (SpaceTime *)sl; SpaceTime *stimen = MEM_dupallocN(stime); - BLI_listbase_clear(&stimen->caches); - return (SpaceLink *)stimen; } -- cgit v1.2.3