Skip to content

Commit

Permalink
fix(Canvas): pass scene prop
Browse files Browse the repository at this point in the history
  • Loading branch information
CodyJasonBennett committed Aug 16, 2023
1 parent bb5cd16 commit aff90df
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/fiber/src/native/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
performance,
raycaster,
camera,
scene,
onPointerMissed,
onCreated,
...props
Expand Down Expand Up @@ -104,6 +105,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<View, Props>(
performance,
raycaster,
camera,
scene,
// expo-gl can only render at native dpr/resolution
// https://github.com/expo/expo-three/issues/39
dpr: PixelRatio.get(),
Expand Down
2 changes: 2 additions & 0 deletions packages/fiber/src/web/Canvas.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<HTMLCanvasElement, Props>(func
performance,
raycaster,
camera,
scene,
onPointerMissed,
onCreated,
...props
Expand Down Expand Up @@ -93,6 +94,7 @@ const CanvasImpl = /*#__PURE__*/ React.forwardRef<HTMLCanvasElement, Props>(func
performance,
raycaster,
camera,
scene,
size: containerRect,
// Pass mutable reference to onPointerMissed so it's free to update
onPointerMissed: (...args) => handlePointerMissed.current?.(...args),
Expand Down

0 comments on commit aff90df

Please sign in to comment.