mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 23:10:33 +05:00
IPAL22823: exception when display operation is applied for edited but not computed mesh
In SMESH_VisualObjDef::GetUnstructuredGrid(), compact myGrid if it is a shallowCopy of SMDS_UnstructuredGrid
This commit is contained in:
parent
5ced91ed62
commit
cb763eea38
@ -595,8 +595,13 @@ bool SMESH_VisualObjDef::GetEdgeNodes( const int theElemId,
|
||||
|
||||
vtkUnstructuredGrid* SMESH_VisualObjDef::GetUnstructuredGrid()
|
||||
{
|
||||
//MESSAGE("SMESH_VisualObjDef::GetUnstructuredGrid " << myGrid);
|
||||
return myGrid;
|
||||
if ( !myLocalGrid && !GetMesh()->isCompacted() )
|
||||
{
|
||||
GetMesh()->compactMesh();
|
||||
vtkUnstructuredGrid *theGrid = GetMesh()->getGrid();
|
||||
myGrid->ShallowCopy(theGrid);
|
||||
}
|
||||
return myGrid;
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user