}
}
- 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() << ")";
}
//================================================================================
if ( _preMeshInfo )
_preMeshInfo->ForgetAllData();
- //_impl->Clear();
+
+ if (isBreakLink)
+ _impl->Clear();
TopoDS_Shape newShape = _gen_i->GeomObjectToShape( mainGO );
if ( newShape.IsNull() )
return;