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:
authorYimingWu <xp8110@outlook.com>2021-06-06 06:18:18 +0300
committerYimingWu <xp8110@outlook.com>2021-06-06 06:18:18 +0300
commita496af8680f7e6c1f69b044b0b0902586711023c (patch)
tree666ca714e0030285f2d4168d34ffe79dad2993bb
parent54ce344bc7cc9a0e1c34b328081cb90e41aca7b9 (diff)
LineArt: Fix edge clipping index error.
Small bug that's causing edge count to be incorrect in final culled list, just being offset exactly 1 entry. Reviewed By: Sebastian Parborg (zeddb) Differential Revision: https://developer.blender.org/D11513
-rw-r--r--source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
index a9d17f19206..8d9eb8e6eb6 100644
--- a/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
+++ b/source/blender/gpencil_modifiers/intern/lineart/lineart_cpu.c
@@ -780,10 +780,10 @@ static void lineart_triangle_cull_single(LineartRenderBuffer *rb,
e = new_e;
#define INCREASE_EDGE \
- e_count++; \
v1_obi = e->v1_obindex; \
v2_obi = e->v2_obindex; \
new_e = &((LineartEdge *)e_eln->pointer)[e_count]; \
+ e_count++; \
e = new_e; \
e->v1_obindex = v1_obi; \
e->v2_obindex = v2_obi; \