Skip to content

Commit

Permalink
fix(useColoringEffect): mapping range after preset
Browse files Browse the repository at this point in the history
  • Loading branch information
floryst committed Apr 4, 2024
1 parent 2fa8cea commit 3241ac1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/composables/useColoringEffect.ts
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@ export function applyColoring({
cfun.setVectorComponent(componentIndex);
}

cfun.setMappingRange(...colorFunction.mappingRange);
const preset = vtkColorMaps.getPresetByName(colorFunction.preset);
if (preset) {
cfun.applyColorMap(preset);
}
cfun.setMappingRange(...colorFunction.mappingRange);

const { mappingRange } = opacityFunction;
ofun.setRange(...opacityFunction.mappingRange);
Expand Down

0 comments on commit 3241ac1

Please sign in to comment.