Skip to content

Commit

Permalink
fix: skip updates on static helpers (#552)
Browse files Browse the repository at this point in the history
* fix(useHelper): skip updates on static helpers

* fix(useHelper): fallback updates to parent transforms

* Revert "fix(useHelper): fallback updates to parent transforms"

This reverts commit 2f1fd5f.
  • Loading branch information
CodyJasonBennett committed Sep 23, 2021
1 parent a32f01e commit 01dd6fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/useHelper.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export function useHelper<T>(object3D: React.MutableRefObject<Object3D | undefin
}, [scene, proto, object3D, args])

useFrame(() => {
if (helper.current) {
if (helper.current?.update) {
helper.current.update()
}
})
Expand Down

1 comment on commit 01dd6fa

@vercel
Copy link

@vercel vercel bot commented on 01dd6fa Sep 23, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.