From e8903df45b442bf320866e928c0e3242e8233654 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 2 Mar 2017 18:15:00 +0300 Subject: [PATCH] 23416: [CEA 2033] Impossible to re-compute a mesh from an hdf 1) Fix loading MG_CADSurf hypothesis from a study 2) Restore OB icons for old studies created before renaming BLSURF -> MG-CADSurf --- src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx | 2 +- src/GUI/BLSURFPlugin_images.ts | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx index 818b589..0300bdd 100644 --- a/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx +++ b/src/BLSURFPlugin/BLSURFPlugin_Hypothesis.cxx @@ -3291,7 +3291,7 @@ void BLSURFPlugin_Hypothesis::LoadPreCADPeriodicity(std::istream & load, const c if (hasTargetVertices) periodicity_i->theTargetVerticesEntries = theTargetVerticesEntries; - if ( shapeType && strcmp( shapeType, "FACES" )) + if ( shapeType && strcmp( shapeType, "FACES" ) == 0 ) _preCadFacesPeriodicityVector.push_back(*periodicity_i); else _preCadEdgesPeriodicityVector.push_back(*periodicity_i); diff --git a/src/GUI/BLSURFPlugin_images.ts b/src/GUI/BLSURFPlugin_images.ts index 730d2a2..c50124d 100644 --- a/src/GUI/BLSURFPlugin_images.ts +++ b/src/GUI/BLSURFPlugin_images.ts @@ -19,6 +19,14 @@ ICON_SMESH_TREE_HYPO_MG-CADSurf Parameters mesh_tree_hypo_BLSURF.png + + ICON_SMESH_TREE_ALGO_BLSURF + mesh_tree_algo_BLSURF.png + + + ICON_SMESH_TREE_HYPO_BLSURF_Parameters + mesh_tree_hypo_BLSURF.png + ICON_SMESH_TREE_ALGO_MG-CADSurf_NOGEOM mesh_tree_algo_BLSURF.png -- 2.30.2