From c41f44426775212aef80bfdb7bc42740970dbdd1 Mon Sep 17 00:00:00 2001 From: Kazi Jawad Date: Mon, 8 May 2023 14:09:50 -0400 Subject: [PATCH] set default CS as positive Z --- src/index.tsx | 3 +++ src/stores/FiltersContext.tsx | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/index.tsx b/src/index.tsx index 765921d..c9e13d7 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -2,12 +2,15 @@ import '@/index.css'; import ReactDOM from 'react-dom/client'; import { RouterProvider } from 'react-router-dom'; +import { Object3D } from 'three'; import ProvideData from '@/stores/DataContext'; import ProvideFilters from '@/stores/FiltersContext'; import { router } from '@/router'; +Object3D.DEFAULT_UP.set(0, 0, 1); + const root = ReactDOM.createRoot(document.getElementById('root')!); root.render( diff --git a/src/stores/FiltersContext.tsx b/src/stores/FiltersContext.tsx index f44bed5..93c5af8 100644 --- a/src/stores/FiltersContext.tsx +++ b/src/stores/FiltersContext.tsx @@ -129,7 +129,7 @@ const initialState: FilterState = { selectedCamera: null, selectedTrack: null, - sceneGridAxes: SceneGridAxes.XZ, + sceneGridAxes: SceneGridAxes.XY, }; function reducer(state: FilterState, action: FilterAction): FilterState {