We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 387f611 + 2a6496f commit 806ad65Copy full SHA for 806ad65
src/core/modules/useColorAndOpacity.ts
@@ -37,7 +37,7 @@ export default function useColorAndOpacity<
37
const property = getActor().getProperty();
38
39
colorTransferFunctions.forEach((fn, component) => {
40
- property.setRGBTransferFunction(component, fn);
+ property.setRGBTransferFunction(component, fn ?? null);
41
});
42
43
return () => {
@@ -52,7 +52,7 @@ export default function useColorAndOpacity<
52
53
54
scalarOpacityFunctions.forEach((fn, component) => {
55
- property.setScalarOpacity(component, fn);
+ property.setScalarOpacity(component, fn ?? null);
56
57
58
0 commit comments