Skip to content

Commit

Permalink
set default CS as positive Z
Browse files Browse the repository at this point in the history
  • Loading branch information
kazijawad committed May 8, 2023
1 parent 4901eba commit c41f444
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion src/stores/FiltersContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ const initialState: FilterState = {
selectedCamera: null,
selectedTrack: null,

sceneGridAxes: SceneGridAxes.XZ,
sceneGridAxes: SceneGridAxes.XY,
};

function reducer(state: FilterState, action: FilterAction): FilterState {
Expand Down

0 comments on commit c41f444

Please sign in to comment.