vtkUnstructuredGrid* SMESH_VisualObjDef::GetUnstructuredGrid()
{
- if ( !myLocalGrid && !GetMesh()->IsCompacted() )
+ if ( !myLocalGrid && ( !GetMesh()->IsCompacted() || // !IsCompacted() is needed ???
+ GetMesh()->GetGrid()->GetMTime() > myGrid->GetMTime() ))
{
NulData(); // detach from the SMDS grid to allow immediate memory de-allocation in CompactMesh()
GetMesh()->CompactMesh();
}
else
{
- (*group)->Extent(); // to free cashed elements in GroupOnFilter's
+ (*group)->Extent(); // to free cached elements in GroupOnFilter's
}
}
}
}
_mapHypo.clear();
- // clear cashed shapes if no more meshes remain; (the cash is blame,
+ // clear cached shapes if no more meshes remain; (the cache is blame,
// together with publishing, of spent time increasing in issue 22874)
if ( _impl->NbMeshes() == 1 )
_gen_i->GetShapeReader()->ClearClientBuffer();