Skip to content

Commit 40fb6b1

Browse files
committed
Revert "reuse lut when already exists"
This reverts commit fbcf9f9.
1 parent 09925d6 commit 40fb6b1

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

‎src/ansys/visor/visor-client/src/renderer/WasmRenderer.ts‎

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -402,11 +402,8 @@ export class WasmRenderer implements IRenderer {
402402
await wasmMapper.ColorByArrayComponent(descriptor.variableName, descriptor.component);
403403
await wasmMapper.SetScalarVisibility(1);
404404
// Force creation of LUT if not already done. (Alternatively, after 9.5.20250802.dev0, you can call mapper.SetLookupTable(null))
405-
let lut = await wasmMapper.GetLookupTable();
406-
if (lut == null || !lut.id) {
407-
await wasmMapper.CreateDefaultLookupTable();
408-
const lut = await wasmMapper.GetLookupTable();
409-
}
405+
await wasmMapper.CreateDefaultLookupTable();
406+
const lut = await wasmMapper.GetLookupTable();
410407
await lut.SetHueRange(0.667, 0.0);
411408
await lut.SetVectorModeToMagnitude();
412409
}

0 commit comments

Comments
 (0)