From df280637952d35cfaa74e31f03a0d825b22eddf4 Mon Sep 17 00:00:00 2001 From: Sebastian Parborg Date: Wed, 17 Mar 2021 14:28:12 +0100 Subject: Cleanup, LineArt: Rename LineartLine -> LineartEdge Also cleanup various other "line" variable names --- source/blender/gpencil_modifiers/intern/lineart/lineart_util.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'source/blender/gpencil_modifiers/intern/lineart/lineart_util.c') 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; -- cgit v1.2.3