Skip to content
Snippets Groups Projects
Commit 38e43665 authored by Arnaud Billon's avatar Arnaud Billon :speech_balloon:
Browse files

[fix] Import vtkDataSetAttributes

parent 2b846fed
No related branches found
No related tags found
1 merge request!311Paraview 510 upgrade
......@@ -34,6 +34,7 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <vtkDataObject.h>
#include <vtkNew.h>
#include <vtkDataSetAttributes.h>
#include <vtkSMSourceProxy.h>
#include <vtkSMViewProxy.h>
#include <vtkSMPVRepresentationProxy.h>
......@@ -118,7 +119,7 @@ bool lqLiveSourceScalarColoringBehavior::TrySetScalarColoring(pqPipelineSource*
proxy->GetDataInformation(i)->GetPointDataInformation()->GetAttributeInformation(vtkDataSetAttributes::SCALARS))
{
auto* pdInfo = proxy->GetDataInformation(i)->GetPointDataInformation();
char* arrayName = pdInfo->GetAttributeInformation(vtkDataSetAttributes::SCALARS)->GetName();
const char* arrayName = pdInfo->GetAttributeInformation(vtkDataSetAttributes::SCALARS)->GetName();
// check if ScalarColoring is already properly set
if( !pvrp->GetUsingScalarColoring() )
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment