Commit: 10c097eff0416368bf769c3349e9c81c12f19d5f
Author: YimingWu
Date: Fri Mar 5 21:07:23 2021 +0800
Branches: lanpr-under-gp
https://developer.blender.org/rB10c097eff0416368bf769c3349e9c81c12f19d5f
LineArt: Take care unitialized variables in lineart_cpu.c
===================================================================
M source/blender/editors/lineart/lineart_cpu.c
===================================================================
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++; \
_______________________________________________
Bf-blender-cvs mailing list
[email protected]
https://lists.blender.org/mailman/listinfo/bf-blender-cvs