From 98e280ee5df32133341641951c5308ffc3838850 Mon Sep 17 00:00:00 2001 From: rnv Date: Tue, 15 Dec 2015 17:46:05 +0300 Subject: [PATCH] Fix a problem with the restoring enforced vertices and enforced meshes --- src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx index d7a7b85..c4c9901 100644 --- a/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx +++ b/src/GHS3DPlugin/GHS3DPlugin_Hypothesis.cxx @@ -1252,9 +1252,11 @@ std::istream & GHS3DPlugin_Hypothesis::LoadFrom(std::istream & load) bool hasCoords = false; isOK = (load >> txt); // __BEGIN_VERTEX__ while (isOK) { - if (txt == "__ENFORCED_VERTICES_END__") - isOK = false; - + if (txt == "__ENFORCED_VERTICES_END__") { + //isOK = false; + break; + } + TGHS3DEnforcedVertex *enfVertex = new TGHS3DEnforcedVertex(); while (isOK) { isOK = (load >> txt); -- 2.39.2