Skip to content

Commit 2b96b2f

Browse files
committed
update
1 parent 04d8208 commit 2b96b2f

File tree

1 file changed

+1
-1
lines changed
  • packages/use-shader-fx/src/hooks/useBlank

1 file changed

+1
-1
lines changed

packages/use-shader-fx/src/hooks/useBlank/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ export const useBlank = ({
7979
const render = useCallback(
8080
(rootState: RootState, newValues?: {} & BlankConfig) => {
8181
const { gl, clock, pointer } = rootState;
82-
newValues && setValues(newValues);
82+
if (newValues) setValues(newValues);
8383
material.uniforms.time.value = clock.getElapsedTime();
8484
material.uniforms.pointer.value.lerp(
8585
pointer,

0 commit comments

Comments
 (0)