22316: EDF 2719 SMESH: Split hexas into prisms

disable dialog if a mesh includes no hexahedra
This commit is contained in:
eap 2014-01-21 09:24:53 +00:00
parent 67dba15dfd
commit 3f7c707fd9

View File

@ -1698,6 +1698,7 @@ void SMESHGUI_SplitVolumesDlg::on3d2dChanged(int isPrism)
}
SMESHGUI_MultiEditDlg::on3d2dChanged( !myEntityType );
myEntityType = 1; // == VOLUME
onSelectionDone();
}
//================================================================================
@ -1788,6 +1789,8 @@ void SMESHGUI_SplitVolumesDlg::onSelectionDone()
}
updateButtons();
}
myCriterionGrp->setEnabled( !myMesh->_is_nil() && nbElemsInMesh() > 0 );
}
//================================================================================