improve(TempCache): make temporal cache use recursive copy for CDS

HTGUnlimitedGradien
Julien Fausty 3 months ago
parent c7122c5faf
commit 49a228c0f9
  1. 9
      Filters/Hybrid/vtkTemporalDataSetCache.cxx

@ -497,15 +497,16 @@ void vtkTemporalDataSetCache::ReplaceCacheItem(
{
vtkTDSCMemkindRAII(this);
vtkDataObject* cachedData = input->NewInstance();
if (vtkDataObject::GetUsingMemkind() && !this->IsASource)
vtkCompositeDataSet* compositeCache = vtkCompositeDataSet::SafeDownCast(cachedData);
if (!(vtkDataObject::GetUsingMemkind() && !this->IsASource) && this->GetCacheInMemkind())
{
cachedData->ShallowCopy(input);
cachedData->DeepCopy(input);
}
else
{
if (this->GetCacheInMemkind())
if (compositeCache)
{
cachedData->DeepCopy(input);
compositeCache->RecursiveShallowCopy(input);
}
else
{

Loading…
Cancel
Save