Fix #105164: Blender exits when QuadriFlow solver fails
Replace calls to exit(..) with an error return value.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user