diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-07-04 18:29:52 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2016-07-04 18:30:52 +0300 |
commit | 439fe6568fc5494ef18394612da3eb069bb82483 (patch) | |
tree | 51c557e6ea7551a47a3f5ce882c6ff1962bec676 /source/blender/editors/uvedit/uvedit_parametrizer.c | |
parent | 99683f25e8e8bd9b1e9d8f4a0966cc6268c98fb0 (diff) |
Fix use of uninitialized variable introduced in fix for T48755.
Diffstat (limited to 'source/blender/editors/uvedit/uvedit_parametrizer.c')
-rw-r--r-- | source/blender/editors/uvedit/uvedit_parametrizer.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index b3190ef784f..cd368ab32e0 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -2804,7 +2804,7 @@ static PBool p_chart_abf_solve(PChart *chart) static void p_chart_pin_positions(PChart *chart, PVert **pin1, PVert **pin2) { - if (pin1 == pin2) { + if (!*pin1 || !*pin2 || *pin1 == *pin2) { /* degenerate case */ PFace *f = chart->faces; *pin1 = f->edge->vert; @@ -3051,7 +3051,7 @@ static void p_chart_lscm_begin(PChart *chart, PBool live, PBool abf) p_chart_boundaries(chart, NULL, &outer); /* outer can be NULL with non-finite coords. */ - if (outer && !p_chart_symmetry_pins(chart, outer, &pin1, &pin2)) { + if (!(outer && p_chart_symmetry_pins(chart, outer, &pin1, &pin2))) { p_chart_extrema_verts(chart, &pin1, &pin2); } |