mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-12-26 01:10:35 +05:00
Fix for the break-link dump into python: also sub-mesh references must be updated.
This commit is contained in:
parent
800fdf5fdc
commit
09e4b58983
@ -284,7 +284,11 @@ void SMESH_Mesh_i::ReplaceShape(GEOM::GEOM_Object_ptr theNewGeom)
|
||||
}
|
||||
}
|
||||
|
||||
TPythonDump() << SMESH::SMESH_Mesh_var(_this()) << ".ReplaceShape( " << theNewGeom->GetStudyEntry() << " )";
|
||||
TPythonDump() << SMESH::SMESH_Mesh_var(_this()) << ".ReplaceShape( "
|
||||
<< theNewGeom->GetStudyEntry() << " )";
|
||||
|
||||
TPythonDump() << "SHAPERSTUDY.breakLinkForSubElements(salome.ObjectToSObject("
|
||||
<< SMESH::SMESH_Mesh_var(_this()) <<".GetMesh()), " << theNewGeom->GetStudyEntry() << ")";
|
||||
}
|
||||
|
||||
//================================================================================
|
||||
@ -2288,7 +2292,9 @@ void SMESH_Mesh_i::CheckGeomModif( bool isBreakLink )
|
||||
if ( _preMeshInfo )
|
||||
_preMeshInfo->ForgetAllData();
|
||||
|
||||
//_impl->Clear();
|
||||
|
||||
if (isBreakLink)
|
||||
_impl->Clear();
|
||||
TopoDS_Shape newShape = _gen_i->GeomObjectToShape( mainGO );
|
||||
if ( newShape.IsNull() )
|
||||
return;
|
||||
|
Loading…
Reference in New Issue
Block a user