mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-28 08:20:33 +05:00
0022364: EDF SMESH: Create Mesh dialog box improvement: hide inapplicable algorithms/hypotheses
Small fix
This commit is contained in:
parent
38ef3e316c
commit
e061c0b256
@ -2689,9 +2689,8 @@ void SMESHGUI_MeshOp::setFilteredAlgoData( const int theTabIndex, const int theI
|
|||||||
setCurrentHyp( dim, Algo, -1 );
|
setCurrentHyp( dim, Algo, -1 );
|
||||||
}
|
}
|
||||||
|
|
||||||
int aMaxShapeDim = ( myMaxShapeDim != aDim) ? aDim : myMaxShapeDim;
|
|
||||||
if ( isNone || isReqDisBound ) {
|
if ( isNone || isReqDisBound ) {
|
||||||
for ( int i = SMESH::DIM_0D; i <= aMaxShapeDim; i++ ) {
|
for ( int i = SMESH::DIM_0D; i <= myMaxShapeDim; i++ ) {
|
||||||
if ( aDim != i ) {
|
if ( aDim != i ) {
|
||||||
myDlg->disableTab( i );
|
myDlg->disableTab( i );
|
||||||
setCurrentHyp(i, Algo, -1);
|
setCurrentHyp(i, Algo, -1);
|
||||||
@ -2733,7 +2732,7 @@ void SMESHGUI_MeshOp::setFilteredAlgoData( const int theTabIndex, const int theI
|
|||||||
isAvailable = false;
|
isAvailable = false;
|
||||||
if ( HypothesisData* algoDataIn = SMESH::GetHypothesisData( currentHypoSet->current() ))
|
if ( HypothesisData* algoDataIn = SMESH::GetHypothesisData( currentHypoSet->current() ))
|
||||||
{
|
{
|
||||||
for (int i = SMESH::DIM_0D; i <= SMESH::DIM_3D; i++)
|
for (int i = SMESH::DIM_0D; i <= myMaxShapeDim; i++)
|
||||||
{
|
{
|
||||||
for (int j = 0; j < myAvailableHypData[i][Algo].count(); ++j) {
|
for (int j = 0; j < myAvailableHypData[i][Algo].count(); ++j) {
|
||||||
HypothesisData* aCurAlgo = hypData( i, Algo, j );
|
HypothesisData* aCurAlgo = hypData( i, Algo, j );
|
||||||
|
Loading…
Reference in New Issue
Block a user