vtkSMRrepresentedArrayListDomain duplicates array
After investigation, it seems that the vtkPVDataInformation returned in vtkSMRepresentedArrayListDomain::GetExtraDataInformation() contains wrong ArrayAttributeType (for example for Tangents, the attribute type can be -1 or 2 (normals)), whereas in the previous dataInformation, the ArrayAttributeType were well defined (8 for Tangents, 2 for Normals, and no -1). As the Array is now considered different, in vtkSMArrayListDomain::Update(), the resulting std::set is filled with duplicates :
vtkPVDataInformation* extraInfo = this->GetExtraDataInformation(); if (extraInfo) { this->ALDInternals->BuildArrayList(set, this, fieldDataSelection, iad, extraInfo); }
What I tried :
-
In vtkSMRepresentedArrayListDomain::GetExtraDataInformation(), return null (this fixes the bug obviously but do not take care of parent proxy)
-
Modify vtkSMArrayListDomainArrayInformation::operator<() to not take care of this->ArrayAttributeType for the ordering (as 2 elements a and b are different if !(a < b) && !(b < a)). Infortunately, the sorting will be impacted.
I guess we should resolve the problem in GetExtraDataInformation, but I can't figure out how