Skip to content

Commit 4094d04

Browse files
tobifalkcassava
authored andcommitted
ui: Fix orbit control axes orientation
1 parent dfc3452 commit 4094d04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ui/src/components/rendering.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -292,11 +292,11 @@ class Rendering extends Component {
292292
// Create needed THREE objects.
293293
const renderer = new THREE.WebGLRenderer({ antialias: true });
294294
const camera = new THREE.PerspectiveCamera(45, width / height, 0.1, 10000);
295+
camera.up.set(0, 0, 1);
295296
const controls = new OrbitControls(camera, renderer.domElement);
296297
controls.enableKeys = false;
297298

298299
// Move and rotate camera to viewing position.
299-
camera.up.set(0, 0, 1);
300300
this.cameraSetPosition(camera, this.defaultCameraPerspective);
301301
controls.update();
302302

0 commit comments

Comments
 (0)