Commit 75dd5c60 authored by David C. Lonie's avatar David C. Lonie
Browse files

Ensure that input data is synced.

Otherwise, changing the data source will render the labels from the
old dataset and the polydata from the new dataset.
parent 4f4b8924
......@@ -233,6 +233,12 @@ vtkLabeledContourMapper::~vtkLabeledContourMapper()
//------------------------------------------------------------------------------
void vtkLabeledContourMapper::Render(vtkRenderer *ren, vtkActor *act)
{
// Make sure input data is synced
if (vtkAlgorithm *inputAlgorithm = this->GetInputAlgorithm())
{
inputAlgorithm->Update();
}
if (!this->CheckInputs(ren))
{
return;
......
Markdown is supported
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