[Bf-blender-cvs] [00c41e75628] temp-lanpr-cleanup: GPencil: Rename function

Antonio Vazquez noreply at git.blender.org
Wed Sep 25 03:49:42 CEST 2019


Commit: 00c41e75628d438f25ae0d544e61dc59d83a0b04
Author: Antonio Vazquez
Date:   Fri Sep 20 13:50:18 2019 +0200
Branches: temp-lanpr-cleanup
https://developer.blender.org/rB00c41e75628d438f25ae0d544e61dc59d83a0b04

GPencil: Rename function

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

M	source/blender/draw/engines/gpencil/gpencil_draw_utils.c

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

diff --git a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
index 358857bd609..4b32f7fdc0d 100644
--- a/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
+++ b/source/blender/draw/engines/gpencil/gpencil_draw_utils.c
@@ -1693,7 +1693,7 @@ void gpencil_populate_buffer_strokes(GPENCIL_e_data *e_data,
 }
 
 /* create all missing batches */
-static void gpencil_create_batches(GpencilBatchCache *cache)
+static void gpencil_batches_ensure(GpencilBatchCache *cache)
 {
   if ((cache->b_point.vbo) && (cache->b_point.batch == NULL)) {
     cache->b_point.batch = GPU_batch_create_ex(
@@ -1996,7 +1996,7 @@ void gpencil_populate_multiedit(GPENCIL_e_data *e_data,
   }
 
   /* create batchs and shading groups */
-  gpencil_create_batches(cache);
+  gpencil_batches_ensure(cache);
   gpencil_shgroups_create(e_data, vedata, ob, cache, cache_ob);
 
   cache->is_dirty = false;
@@ -2119,7 +2119,7 @@ void gpencil_populate_datablock(GPENCIL_e_data *e_data,
   }
 
   /* create batchs and shading groups */
-  gpencil_create_batches(cache);
+  gpencil_batches_ensure(cache);
   gpencil_shgroups_create(e_data, vedata, ob, cache, cache_ob);
 
   cache->is_dirty = false;



More information about the Bf-blender-cvs mailing list