mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0021208: Performance issue when loading SMESH with an hdf file containing a big mesh
don't call GetTypes() of GroupOnFilter that can be very long
This commit is contained in:
parent
154564a672
commit
626f2aee7a
@ -315,9 +315,12 @@ namespace SMESH
|
||||
SObjectToInterface<SMESH::SMESH_GroupOnFilter>( aSObj1 );
|
||||
const bool isGroupOnFilter = !gof->_is_nil();
|
||||
|
||||
SMESH::array_of_ElementType_var elemTypes = idSrc->GetTypes();
|
||||
const bool isEmpty = ( elemTypes->length() == 0 );
|
||||
|
||||
bool isEmpty = false;
|
||||
if ( !isGroupOnFilter ) // GetTypes() can be very long on isGroupOnFilter!
|
||||
{
|
||||
SMESH::array_of_ElementType_var elemTypes = idSrc->GetTypes();
|
||||
isEmpty = ( elemTypes->length() == 0 );
|
||||
}
|
||||
if ( isEmpty )
|
||||
aPixmap->SetPixMap("ICON_SMESH_TREE_MESH_WARN");
|
||||
else if ( objType != GROUP )
|
||||
|
Loading…
Reference in New Issue
Block a user