mirror of
https://gitlab.kitware.com/vtk/vtk-m
synced 2024-09-16 17:22:55 +00:00
Fix policy use in FilterDataSet::MapFieldOntoOutput
In FilterDataSet::MapFieldOntoOutput, it was getting each field to map using the traits reserved for the active field. However, when mapping a field outside of the DoExecute, we want to consider a broader set of types.
This commit is contained in:
parent
72739144f1
commit
40ad325699
@ -57,8 +57,7 @@ inline VTKM_CONT bool FilterDataSet<Derived>::MapFieldOntoOutput(
|
||||
using FunctorType = internal::ResolveFieldTypeAndMap<Derived, DerivedPolicy>;
|
||||
FunctorType functor(static_cast<Derived*>(this), result, metaData, policy, valid);
|
||||
|
||||
using Traits = vtkm::filter::FilterTraits<Derived>;
|
||||
vtkm::cont::CastAndCall(vtkm::filter::ApplyPolicyFieldActive(field, policy, Traits()), functor);
|
||||
vtkm::cont::CastAndCall(vtkm::filter::ApplyPolicyFieldNotActive(field, policy), functor);
|
||||
|
||||
//the bool valid will be modified by the map algorithm to hold if the
|
||||
//mapping occurred or not. If the mapping was good a new field has been
|
||||
|
Loading…
Reference in New Issue
Block a user