diff options
author | YimingWu <xp8110@outlook.com> | 2021-03-05 16:07:23 +0300 |
---|---|---|
committer | YimingWu <xp8110@outlook.com> | 2021-03-05 16:07:23 +0300 |
commit | 10c097eff0416368bf769c3349e9c81c12f19d5f (patch) | |
tree | 8be75d4c810a8a1e2695367f7ef529f0c10b6bde | |
parent | a3b9322845dec4b4a57153aecfd025133784ebf0 (diff) |
LineArt: Take care unitialized variables in lineart_cpu.c
-rw-r--r-- | source/blender/editors/lineart/lineart_cpu.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source/blender/editors/lineart/lineart_cpu.c b/source/blender/editors/lineart/lineart_cpu.c index dc833f2914e..1bc831a8665 100644 --- a/source/blender/editors/lineart/lineart_cpu.c +++ b/source/blender/editors/lineart/lineart_cpu.c @@ -495,7 +495,7 @@ int ED_lineart_point_inside_triangled(double v[2], double v0[2], double v1[2], d static int lineart_point_on_segment(double v[2], double v0[2], double v1[2]) { - double c1, c2; + double c1 = 0, c2 = 0; double l0[2], l1[2]; sub_v2_v2v2_db(l0, v, v0); @@ -721,6 +721,7 @@ static void lineart_triangle_cull_single(LineartRenderBuffer *rb, rb->triangle_size * (t_count + 1)); new_rl = &((LineartRenderLine *)leln->pointer)[l_count]; + rl = new_rl; #define INCREASE_RL \ l_count++; \ |