mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-13 18:20:34 +05:00
In PublishSubMesh(), set an icon corresponding to group emptiness
This commit is contained in:
parent
c171d96a4e
commit
07d28083ec
@ -632,7 +632,10 @@ SALOMEDS::SObject_ptr SMESH_Gen_i::PublishSubMesh (SALOMEDS::Study_ptr theS
|
|||||||
SetName( aRootSO, aRootName );
|
SetName( aRootSO, aRootName );
|
||||||
|
|
||||||
// Add new submesh to corresponding sub-tree
|
// Add new submesh to corresponding sub-tree
|
||||||
aSubMeshSO = publish (theStudy, theSubMesh, aRootSO, 0, "ICON_SMESH_TREE_MESH_WARN");
|
SMESH::array_of_ElementType_var elemTypes = theSubMesh->GetTypes();
|
||||||
|
const int isEmpty = ( elemTypes->length() == 0 );
|
||||||
|
const char* pm[2] = { "ICON_SMESH_TREE_MESH", "ICON_SMESH_TREE_MESH_WARN" };
|
||||||
|
aSubMeshSO = publish (theStudy, theSubMesh, aRootSO, 0, pm[isEmpty] );
|
||||||
if ( aSubMeshSO->_is_nil() )
|
if ( aSubMeshSO->_is_nil() )
|
||||||
return aSubMeshSO._retn();
|
return aSubMeshSO._retn();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user