Skip to content

Commit

Permalink
fix: move useVideoTexture to /web
Browse files Browse the repository at this point in the history
fixes #1917.
Moves useVideoTexture to /web. Also fix reference from faceControls.
  • Loading branch information
jorjordandan committed Apr 12, 2024
1 parent 4a5add6 commit 6f7451f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/core/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ export * from './useGLTF'
export * from './useKTX2'
export * from './useProgress'
export * from './useTexture'
export * from './useVideoTexture'
export * from './useFont'
export * from './useSpriteLoader'

Expand Down
2 changes: 1 addition & 1 deletion src/web/FaceControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import type { FaceLandmarkerResult } from '@mediapipe/tasks-vision'
import { easing } from 'maath'
import { suspend, clear } from 'suspend-react'

import { useVideoTexture } from '../core/useVideoTexture'
import { useVideoTexture } from './useVideoTexture'
import { Facemesh, FacemeshApi, FacemeshProps } from './Facemesh'
import { useFaceLandmarker } from './FaceLandmarker'

Expand Down
3 changes: 3 additions & 0 deletions src/web/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,8 @@ export { DragControls } from './DragControls'
// Misc
export * from './FaceLandmarker'

// Loaders
export * from './useVideoTexture'

// Shapes
export * from './Facemesh'
File renamed without changes.

0 comments on commit 6f7451f

Please sign in to comment.