Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAntonioya <blendergit@gmail.com>2019-06-18 15:00:19 +0300
committerAntonioya <blendergit@gmail.com>2019-06-18 15:01:32 +0300
commit0b73817c8cf413f2ef3222221ca1d5a279e58515 (patch)
tree9f76f4cb87f733c2617d754290735645faadc8a8 /source/blender/draw/intern/draw_manager_data.c
parentc11bfb519fd2520fbe46914313bb56e2b646a340 (diff)
Add a new function to recover the next shading group.
After talking with @fclem, we decided to keep this as a workaround function waiting for the clearing operation to be available inside the shgroups.
Diffstat (limited to 'source/blender/draw/intern/draw_manager_data.c')
-rw-r--r--source/blender/draw/intern/draw_manager_data.c7
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);