mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-12 01:30:34 +05:00
0020210: EDF SMESH 976: Update of a smesh group after modification of the associated geom group
Additional patch: do not publish SMESH component automatically on the module activation
This commit is contained in:
parent
25d7535ec6
commit
66b8a7daf6
@ -577,13 +577,17 @@ void SMESH_Gen_i::SetCurrentStudy( SALOMEDS::Study_ptr theStudy )
|
|||||||
// Let meshes update their data depending on GEOM groups that could change
|
// Let meshes update their data depending on GEOM groups that could change
|
||||||
if ( curStudyId != studyId )
|
if ( curStudyId != studyId )
|
||||||
{
|
{
|
||||||
SALOMEDS::SComponent_var me = PublishComponent( myCurrentStudy );
|
//SALOMEDS::SComponent_var me = PublishComponent( myCurrentStudy );
|
||||||
SALOMEDS::ChildIterator_var anIter = myCurrentStudy->NewChildIterator( me );
|
SALOMEDS::SComponent_var me = SALOMEDS::SComponent::_narrow
|
||||||
for ( ; anIter->More(); anIter->Next() ) {
|
( myCurrentStudy->FindComponent( ComponentDataType() ) );
|
||||||
SALOMEDS::SObject_var so = anIter->Value();
|
if ( !me->_is_nil() ) {
|
||||||
CORBA::Object_var ior = SObjectToObject( so );
|
SALOMEDS::ChildIterator_var anIter = myCurrentStudy->NewChildIterator( me );
|
||||||
if ( SMESH_Mesh_i* mesh = SMESH::DownCast<SMESH_Mesh_i*>( ior ))
|
for ( ; anIter->More(); anIter->Next() ) {
|
||||||
mesh->CheckGeomGroupModif();
|
SALOMEDS::SObject_var so = anIter->Value();
|
||||||
|
CORBA::Object_var ior = SObjectToObject( so );
|
||||||
|
if ( SMESH_Mesh_i* mesh = SMESH::DownCast<SMESH_Mesh_i*>( ior ))
|
||||||
|
mesh->CheckGeomGroupModif();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user