mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-04-08 18:17:27 +05:00
021346: EDF 1938 SMESH: "Use existing elements" functionality
In Load(), call hyp->UpdateAsMeshesRestored() before submesh->ComputeStateEngine(SUBMESH_RESTORED)
This commit is contained in:
parent
bb14cd1bfc
commit
e7f669eb81
@ -4671,6 +4671,13 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
}
|
}
|
||||||
} // loop on meshes
|
} // loop on meshes
|
||||||
|
|
||||||
|
// update hyps needing full mesh data restored (issue 20918)
|
||||||
|
for ( hyp_data = hypDataList.begin(); hyp_data != hypDataList.end(); ++hyp_data )
|
||||||
|
{
|
||||||
|
SMESH_Hypothesis_i* hyp = hyp_data->first;
|
||||||
|
hyp->UpdateAsMeshesRestored();
|
||||||
|
}
|
||||||
|
|
||||||
// notify algos on completed restoration
|
// notify algos on completed restoration
|
||||||
for ( meshi_group = meshGroupList.begin(); meshi_group != meshGroupList.end(); ++meshi_group )
|
for ( meshi_group = meshGroupList.begin(); meshi_group != meshGroupList.end(); ++meshi_group )
|
||||||
{
|
{
|
||||||
@ -4687,12 +4694,6 @@ bool SMESH_Gen_i::Load( SALOMEDS::SComponent_ptr theComponent,
|
|||||||
ComputeStateEngine (SMESH_subMesh::SUBMESH_RESTORED);
|
ComputeStateEngine (SMESH_subMesh::SUBMESH_RESTORED);
|
||||||
}
|
}
|
||||||
|
|
||||||
for ( hyp_data = hypDataList.begin(); hyp_data != hypDataList.end(); ++hyp_data )
|
|
||||||
{
|
|
||||||
SMESH_Hypothesis_i* hyp = hyp_data->first;
|
|
||||||
hyp->UpdateAsMeshesRestored(); // for hyps needing full mesh data restored (issue 20918)
|
|
||||||
}
|
|
||||||
|
|
||||||
// close mesh group
|
// close mesh group
|
||||||
if(aTopGroup)
|
if(aTopGroup)
|
||||||
aTopGroup->CloseOnDisk();
|
aTopGroup->CloseOnDisk();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user