From 80e0d560ff506b39519bd0f87e40e4613aa9e376 Mon Sep 17 00:00:00 2001 From: Nicola Giuliani Date: Mon, 11 Nov 2019 18:11:36 +0100 Subject: [PATCH] break --- source/opencascade/utilities.cc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/source/opencascade/utilities.cc b/source/opencascade/utilities.cc index 2f75b6e4f5..44f7b0a535 100644 --- a/source/opencascade/utilities.cc +++ b/source/opencascade/utilities.cc @@ -306,7 +306,10 @@ namespace OpenCASCADE Handle(Poly_Triangulation) theTriangulation = BRep_Tool::Triangulation(faces[i], Loc); if (theTriangulation.IsNull()) - mesh_is_present = false; + { + mesh_is_present = false; + break; + } } TopoDS_Shape shape_to_be_written = shape; if (!mesh_is_present) -- 2.39.5