Commit 99fa385a authored by Utkarsh Ayachit's avatar Utkarsh Ayachit
Browse files

BUG: vtkTable MTime would sometimes not be affected at all on ShallowCopy or

DeepCopy. This was causing issues with ParaView when plotting. Fixed that by
explicitly calling Modified() in these methods. We may want to investigate
simply moving this Modified() call to vtkDataObject.
parent faf2dfb2
......@@ -34,7 +34,7 @@
// Standard functions
//
vtkCxxRevisionMacro(vtkTable, "1.21");
vtkCxxRevisionMacro(vtkTable, "1.22");
vtkStandardNewMacro(vtkTable);
vtkCxxSetObjectMacro(vtkTable, RowData, vtkDataSetAttributes);
......@@ -558,9 +558,10 @@ void vtkTable::ShallowCopy(vtkDataObject* src)
if (vtkTable* const table = vtkTable::SafeDownCast(src))
{
this->RowData->ShallowCopy(table->RowData);
this->Modified();
}
Superclass::ShallowCopy(src);
this->Superclass::ShallowCopy(src);
}
//----------------------------------------------------------------------------
......@@ -569,6 +570,7 @@ void vtkTable::DeepCopy(vtkDataObject* src)
if (vtkTable* const table = vtkTable::SafeDownCast(src))
{
this->RowData->DeepCopy(table->RowData);
this->Modified();
}
Superclass::DeepCopy(src);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment