diff options
Diffstat (limited to 'source/blender/draw/intern/draw_manager_data.c')
-rw-r--r-- | source/blender/draw/intern/draw_manager_data.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c index 9c9b91eaaed..10d16021b27 100644 --- a/source/blender/draw/intern/draw_manager_data.c +++ b/source/blender/draw/intern/draw_manager_data.c @@ -996,6 +996,13 @@ bool DRW_shgroup_is_empty(DRWShadingGroup *shgroup) return shgroup->calls.first == NULL; } +/* This is a workaround function waiting for the clearing operation to be available inside the + * shgroups. */ +DRWShadingGroup *DRW_shgroup_get_next(DRWShadingGroup *shgroup) +{ + return shgroup->next; +} + DRWShadingGroup *DRW_shgroup_create_sub(DRWShadingGroup *shgroup) { DRWShadingGroup *shgroup_new = BLI_memblock_alloc(DST.vmempool->shgroups); |