mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 18:07:27 +05:00
0021180: EDF 1772 SMESH: Set of hypothesis in 1D
Additional change: enable tabs if no shape is selected
This commit is contained in:
parent
b712c057d5
commit
a91bb00475
@ -474,7 +474,7 @@ void SMESHGUI_MeshOp::selectionDone()
|
|||||||
{
|
{
|
||||||
// Enable tabs according to shape dimension
|
// Enable tabs according to shape dimension
|
||||||
|
|
||||||
int shapeDim = -1;
|
int shapeDim = 3;
|
||||||
|
|
||||||
QStringList aGEOMs;
|
QStringList aGEOMs;
|
||||||
myDlg->selectedObject(SMESHGUI_MeshDlg::Geom, aGEOMs);
|
myDlg->selectedObject(SMESHGUI_MeshDlg::Geom, aGEOMs);
|
||||||
@ -504,7 +504,7 @@ void SMESHGUI_MeshOp::selectionDone()
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (aSeq->length() > 0) {
|
if (aSeq->length() > 0) {
|
||||||
//shapeDim = 0;
|
shapeDim = -1;
|
||||||
for (int iss = 0; iss < aSeq->length() && shapeDim < 3; iss++) {
|
for (int iss = 0; iss < aSeq->length() && shapeDim < 3; iss++) {
|
||||||
GEOM::GEOM_Object_var aGeomVar = aSeq[iss];
|
GEOM::GEOM_Object_var aGeomVar = aSeq[iss];
|
||||||
switch ( aGeomVar->GetShapeType() ) {
|
switch ( aGeomVar->GetShapeType() ) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user