mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-25 08:50:35 +05:00
0020210: EDF SMESH 976: Update of a smesh group after modification of the associated geom group
use gen->SetPixMap()
This commit is contained in:
parent
908ed4f2a2
commit
42b21b7e94
@ -3874,11 +3874,7 @@ SMESH::SMESH_Mesh_ptr SMESH_MeshEditor_i::makeMesh(const char* theMeshName)
|
|||||||
SALOMEDS::Study_var study = gen->GetCurrentStudy();
|
SALOMEDS::Study_var study = gen->GetCurrentStudy();
|
||||||
SALOMEDS::SObject_var meshSO = gen->ObjectToSObject( study, mesh );
|
SALOMEDS::SObject_var meshSO = gen->ObjectToSObject( study, mesh );
|
||||||
gen->SetName( meshSO, theMeshName, "Mesh" );
|
gen->SetName( meshSO, theMeshName, "Mesh" );
|
||||||
|
gen->SetPixMap( meshSO, "ICON_SMESH_TREE_MESH_IMPORTED");
|
||||||
SALOMEDS::StudyBuilder_var builder = study->NewBuilder();
|
|
||||||
SALOMEDS::GenericAttribute_var anAttr
|
|
||||||
= builder->FindOrCreateAttribute( meshSO, "AttributePixMap" );
|
|
||||||
SALOMEDS::AttributePixMap::_narrow( anAttr )->SetPixMap( "ICON_SMESH_TREE_MESH_IMPORTED" );
|
|
||||||
|
|
||||||
return mesh._retn();
|
return mesh._retn();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user