Fix #105164: Blender exits when QuadriFlow solver fails

Replace calls to exit(..) with an error return value.
This commit is contained in:
Campbell Barton
2025-01-22 19:17:20 +11:00
parent 16f728cfe5
commit 46724ca841
7 changed files with 182 additions and 16 deletions

View File

@@ -190,8 +190,11 @@ void QFLOW_quadriflow_remesh(QuadriflowRemeshData *qrd,
return;
}
/* Compute the final quad geomtry using a maxflow solver */
field.ComputeIndexMap();
/* Compute the final quad geometry using a maxflow solver */
if (!field.ComputeIndexMap()) {
/* Error computing the result. */
return;
}
if (check_if_canceled(0.9f, update_cb, update_cb_data)) {
return;