From 47ce2d7bef32a7f5de34ac3e0cfb8300a4e63cd9 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Sun, 22 Nov 2015 05:25:32 +0100 Subject: OpenNL: significantly simplify code using Eigen / STL. --- source/blender/editors/uvedit/uvedit_parametrizer.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'source/blender/editors/uvedit') diff --git a/source/blender/editors/uvedit/uvedit_parametrizer.c b/source/blender/editors/uvedit/uvedit_parametrizer.c index 00615f9bef7..cb387b4af22 100644 --- a/source/blender/editors/uvedit/uvedit_parametrizer.c +++ b/source/blender/editors/uvedit/uvedit_parametrizer.c @@ -193,7 +193,7 @@ typedef struct PChart { union PChartUnion { struct PChartLscm { - NLContext context; + NLContext *context; float *abf_alpha; PVert *pin1, *pin2; } lscm; @@ -2613,7 +2613,7 @@ static PBool p_abf_matrix_invert(PAbfSystem *sys, PChart *chart) nlEnd(NL_SYSTEM); - success = nlSolve(); + success = nlSolve(NL_FALSE); if (success) { for (f = chart->faces; f; f = f->nextlink) { @@ -3223,7 +3223,7 @@ static PBool p_chart_lscm_solve(PHandle *handle, PChart *chart) nlEnd(NL_SYSTEM); - if (nlSolveAdvanced(NULL, NL_TRUE)) { + if (nlSolve(NL_TRUE)) { p_chart_lscm_load_solution(chart); return P_TRUE; } -- cgit v1.2.3