diff options
author | Sebastian Parborg <darkdefende@gmail.com> | 2021-03-17 16:28:12 +0300 |
---|---|---|
committer | Sebastian Parborg <darkdefende@gmail.com> | 2021-03-18 14:41:44 +0300 |
commit | df280637952d35cfaa74e31f03a0d825b22eddf4 (patch) | |
tree | 21d215dc1a5dbf2752257de6b378b71aee9434c7 /source/blender/gpencil_modifiers/intern/lineart/lineart_util.c | |
parent | d7fb38ddd4afdb44a97a3ac9d5d3a73509f83a90 (diff) |
Cleanup, LineArt: Rename LineartLine -> LineartEdge
Also cleanup various other "line" variable names
Diffstat (limited to 'source/blender/gpencil_modifiers/intern/lineart/lineart_util.c')
-rw-r--r-- | source/blender/gpencil_modifiers/intern/lineart/lineart_util.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_util.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_util.c index 8e8c39391c3..b38124fc7a5 100644 --- a/source/blender/gpencil_modifiers/intern/lineart/lineart_util.c +++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_util.c @@ -130,11 +130,11 @@ void lineart_mem_destroy(LineartStaticMemPool *smp) } } -void lineart_prepend_line_direct(LineartLine **first, void *node) +void lineart_prepend_edge_direct(LineartEdge **first, void *node) { - LineartLine *ln = (LineartLine *)node; - ln->next = (*first); - (*first) = ln; + LineartEdge *e_n = (LineartEdge *)node; + e_n->next = (*first); + (*first) = e_n; } void lineart_prepend_pool(LinkNode **first, LineartStaticMemPool *smp, void *link) @@ -215,7 +215,7 @@ void lineart_count_and_print_render_buffer_memory(LineartRenderBuffer *rb) LISTBASE_FOREACH (LineartElementLinkNode *, reln, &rb->line_buffer_pointers) { count_this++; - sum_this += reln->element_count * sizeof(LineartLine); + sum_this += reln->element_count * sizeof(LineartEdge); } printf(" allocated %lu edge blocks, total %lu Bytes.\n", count_this, sum_this); total += sum_this; |