mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-05 23:38:42 +08:00
Prettified Code!
This commit is contained in:
1 parent
4c77c4e7c0
commit
95884a7f95
11 files changed
+23
-25
No files matched your search
@@ -7,7 +7,6 @@ import React, { useContext, useEffect, useRef } from 'react';
|
||||
import { WebSocketContext } from '../WebSocket/WebSocket';
|
||||
import WebRtcWindow from '../WebRtcWindow/WebRtcWindow';
|
||||
|
||||
|
||||
const msgpack = require('msgpack-lite');
|
||||
|
||||
function createStats() {
|
||||
@@ -30,7 +29,7 @@ export default function ViewerWindow(props) {
|
||||
(state) => state.renderingState.field_of_view,
|
||||
);
|
||||
const field_of_view_ref = useRef(field_of_view);
|
||||
|
||||
|
||||
const camera = useRef(null);
|
||||
let cameraControls = null;
|
||||
let renderer = null;
|
||||
@@ -128,7 +127,6 @@ export default function ViewerWindow(props) {
|
||||
cameraControls.dampingFactor = 1.0;
|
||||
cameraControls.update();
|
||||
update();
|
||||
|
||||
}, []);
|
||||
|
||||
// updates the field of view inside the ref to avoid rerendering so often
|
||||
|
||||
Reference in new issue
Block a user