Skip to content

Commit db9815b

Browse files
committed
Fix #858
1 parent 7690f35 commit db9815b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/r3f/components/CameraTransition.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import { CameraTransitionManager } from '3d-tiles-renderer';
44

55
export const CameraTransition = forwardRef( function CameraTransition( props, ref ) {
66

7-
const { mode, onTransitionStart, onTransitionEnd, perspectiveCamera, orthographicCamera } = props;
7+
const { mode = 'perspective', onTransitionStart, onTransitionEnd, perspectiveCamera, orthographicCamera } = props;
88
const [ set, invalidate, controls, camera, size ] = useThree( state => [ state.set, state.invalidate, state.controls, state.camera, state.size ] );
99

1010
// create the manager

0 commit comments

Comments
 (0)