mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-03-15 18:41:26 +05:00
fix problem with nodes/elements IDS
This commit is contained in:
parent
dbaabcfcdb
commit
2ad8328311
@ -1877,10 +1877,13 @@ void GroupColor::SetMesh( const SMDS_Mesh* theMesh )
|
||||
if ( myType != SMDSAbs_All && myType != (SMDSAbs_ElementType)aGrp->GetType() )
|
||||
continue;
|
||||
|
||||
// add elements IDS into control
|
||||
int aSize = aGrp->Extent();
|
||||
for (int i = 0; i < aSize; i++)
|
||||
myIDs.insert( aGrp->GetID(i+1) );
|
||||
SMDSAbs_ElementType aGrpElType = (SMDSAbs_ElementType)aGrp->GetType();
|
||||
if ( myType == aGrpElType || (myType == SMDSAbs_All && aGrpElType != SMDSAbs_Node) ) {
|
||||
// add elements IDS into control
|
||||
int aSize = aGrp->Extent();
|
||||
for (int i = 0; i < aSize; i++)
|
||||
myIDs.insert( aGrp->GetID(i+1) );
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user