Skip to content

Commit

Permalink
feat: omit blendFunction for watchers
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarosabu committed Nov 7, 2023
1 parent 0eb9c13 commit 6ff21b9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/core/effects/Noise.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import { BlendFunction, NoiseEffect } from 'postprocessing'
import { useEffect } from '../composables/effect'
import { makePropWatchersUsingAllProps } from '../../util/prop'
import { omit } from '../../util/object'
export interface NoiseProps {
/**
Expand All @@ -20,7 +21,7 @@ const { pass, effect } = useEffect(() => new NoiseEffect(props))
defineExpose({ pass, effect }) // to allow users to modify pass and effect via template ref
makePropWatchersUsingAllProps(
props,
omit(props, ['blendFunction']),
effect,
() => new NoiseEffect(),
)
Expand Down

0 comments on commit 6ff21b9

Please sign in to comment.