From 3241ac1f03427d9f370f3f9c65b9b271b1232380 Mon Sep 17 00:00:00 2001 From: Forrest Date: Thu, 4 Apr 2024 17:03:35 -0400 Subject: [PATCH] fix(useColoringEffect): mapping range after preset --- src/composables/useColoringEffect.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/composables/useColoringEffect.ts b/src/composables/useColoringEffect.ts index 544e7021..17ff87c0 100644 --- a/src/composables/useColoringEffect.ts +++ b/src/composables/useColoringEffect.ts @@ -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);