Commit 3c7e49e1 authored by Ken Martin's avatar Ken Martin
Browse files

lic enable and disable was nto working properly

for composite data it needed to be copied to the helper
and needed a modified called once the helpers were recopied.
parent 9d40972a
Pipeline #23343 passed with stage
......@@ -35,6 +35,7 @@
#include "vtkUnsignedCharArray.h"
#include "vtkMultiBlockDataSet.h"
#include "vtkMultiPieceDataSet.h"
#include "vtkSurfaceLICInterface.h"
#include <algorithm>
......@@ -544,7 +545,8 @@ void vtkCompositeSurfaceLICMapper::Render(vtkRenderer *ren, vtkActor *actor)
else // otherwise just reinitialize the shaders
{
// if we have changed recopy our mapper settings to the helpers
if (this->GetMTime() > this->HelperMTime)
if (this->GetMTime() > this->HelperMTime ||
this->LICInterface->GetMTime() > this->HelperMTime)
{
std::map<const vtkDataSet*, vtkCompositeLICHelper *>::iterator miter
= this->Helpers.begin();
......@@ -552,6 +554,7 @@ void vtkCompositeSurfaceLICMapper::Render(vtkRenderer *ren, vtkActor *actor)
{
this->CopyMapperValuesToHelper(miter->second);
}
this->HelperMTime.Modified();
}
}
......
......@@ -159,6 +159,7 @@ void vtkSurfaceLICInterface::ShallowCopy(vtkSurfaceLICInterface *m)
this->SetMaskThreshold(m->GetMaskThreshold());
this->SetMaskIntensity(m->GetMaskIntensity());
this->SetMaskColor(m->GetMaskColor());
this->SetEnable(m->GetEnable());
}
void vtkSurfaceLICInterface::UpdateCommunicator(
......
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