mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 17:00:34 +05:00
bos #18601 GMSH is missing from SMESH algorithms when 2D model is selected
This commit is contained in:
parent
7d3e4fc0b1
commit
0c8b79a917
@ -780,7 +780,7 @@ bool SMESHGUI_MeshOp::isCompatibleToGeometry(HypothesisData* theAlgoData,
|
||||
|
||||
bool isApplicable = false;
|
||||
if ( myGeomEntry == myLastGeomEntry && !myGeomEntry.isEmpty() ) {
|
||||
THypLabelIsAppMap::const_iterator lab2isApp = myHypMapIsApplicable.find( theAlgoData->Label );
|
||||
THypLabelIsAppMap::const_iterator lab2isApp = myHypMapIsApplicable.find( theAlgoData->TypeName );
|
||||
if ( lab2isApp != myHypMapIsApplicable.end() ) {
|
||||
isApplicable = lab2isApp.value();
|
||||
return isApplicable;
|
||||
@ -791,7 +791,7 @@ bool SMESHGUI_MeshOp::isCompatibleToGeometry(HypothesisData* theAlgoData,
|
||||
toCheckIsApplicableToAll = ( myGeom->GetType() == GEOM_GROUP );
|
||||
|
||||
isApplicable = SMESH::IsApplicable( theAlgoData->TypeName, myGeom, toCheckIsApplicableToAll );
|
||||
myHypMapIsApplicable.insert( theAlgoData->Label, isApplicable );
|
||||
myHypMapIsApplicable.insert( theAlgoData->TypeName, isApplicable );
|
||||
return isApplicable;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user