Update ViewerPanel.tsx
This commit is contained in:
parent
062c89a45b
commit
719641ca7b
1 changed files with 0 additions and 1 deletions
|
|
@ -38,7 +38,6 @@ export default function ViewerPanel({className, style}: {className?: string, sty
|
||||||
if (!otherRef.current) return;
|
if (!otherRef.current) return;
|
||||||
if (e.detail.source === 'user-interaction') {
|
if (e.detail.source === 'user-interaction') {
|
||||||
const cameraOrbit = ref.current.getCameraOrbit();
|
const cameraOrbit = ref.current.getCameraOrbit();
|
||||||
console.log(cameraOrbit.toString());
|
|
||||||
cameraOrbit.radius = otherRef.current.getCameraOrbit().radius;
|
cameraOrbit.radius = otherRef.current.getCameraOrbit().radius;
|
||||||
|
|
||||||
otherRef.current.cameraOrbit = cameraOrbit.toString();
|
otherRef.current.cameraOrbit = cameraOrbit.toString();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue