mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-27 09:50:34 +05:00
22364: EDF SMESH: Create Mesh dialog box improvement: hide inapplicable algorithms/hypotheses
Bug: 3D tab disabled on an imported mesh
This commit is contained in:
parent
3556420099
commit
10e32df831
@ -2606,13 +2606,15 @@ void SMESHGUI_MeshOp::setFilteredAlgoData( const int theTabIndex, const int theI
|
||||
if ( isAvailableChoiceAlgo )
|
||||
setCurrentHyp( dim, Algo, anCurrentAvailableAlgo );
|
||||
}
|
||||
int aDimNotGeometry = ( myIsOnGeometry ) ? SMESH::DIM_0D : SMESH::DIM_3D;
|
||||
if ( !myIsOnGeometry )
|
||||
for ( int i = SMESH::DIM_0D; i <= SMESH::DIM_3D; i++ ){
|
||||
myDlg->disableTab( i );
|
||||
for ( int i = SMESH::DIM_0D; i <= SMESH::DIM_3D; i++ ) {
|
||||
if ( i < SMESH::DIM_3D ) myDlg->disableTab( i );
|
||||
else myDlg->enableTab( i );
|
||||
}
|
||||
for ( int i = aDimNotGeometry; i <= myMaxShapeDim; i++ ) {
|
||||
myDlg->enableTab( i );
|
||||
else
|
||||
for ( int i = SMESH::DIM_0D; i <= SMESH::DIM_3D; i++ ) {
|
||||
if ( i > myMaxShapeDim ) myDlg->disableTab( i );
|
||||
else myDlg->enableTab( i );
|
||||
}
|
||||
myDlg->setCurrentTab( theTabIndex );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user