diff --git a/src/viser/client/src/SceneTree.tsx b/src/viser/client/src/SceneTree.tsx index 288a3e8f..d82fd97d 100644 --- a/src/viser/client/src/SceneTree.tsx +++ b/src/viser/client/src/SceneTree.tsx @@ -222,20 +222,16 @@ function useObjectFactory(message: SceneNodeMessage | undefined): { message.props.plane == "xz" ? new THREE.Euler(0.0, 0.0, 0.0) : message.props.plane == "xy" - ? new THREE.Euler(Math.PI / 2.0, 0.0, 0.0) - : message.props.plane == "yx" - ? new THREE.Euler(0.0, Math.PI / 2.0, Math.PI / 2.0) - : message.props.plane == "yz" - ? new THREE.Euler(0.0, 0.0, Math.PI / 2.0) - : message.props.plane == "zx" - ? new THREE.Euler(0.0, Math.PI / 2.0, 0.0) - : message.props.plane == "zy" - ? new THREE.Euler( - -Math.PI / 2.0, - 0.0, - -Math.PI / 2.0, - ) - : undefined + ? new THREE.Euler(Math.PI / 2.0, 0.0, 0.0) + : message.props.plane == "yx" + ? new THREE.Euler(0.0, Math.PI / 2.0, Math.PI / 2.0) + : message.props.plane == "yz" + ? new THREE.Euler(0.0, 0.0, Math.PI / 2.0) + : message.props.plane == "zx" + ? new THREE.Euler(0.0, Math.PI / 2.0, 0.0) + : message.props.plane == "zy" + ? new THREE.Euler(-Math.PI / 2.0, 0.0, -Math.PI / 2.0) + : undefined } />