mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-11-14 11:54:01 +08:00
1 parent
feafc0a314
commit
5f555474be
2 files changed
+4
-4
No files matched your search
@@ -68,23 +68,22 @@ export default function StatusPanel(props: StatusPanelProps) {
|
||||
? 'Render Connected'
|
||||
: 'Render Disconnected';
|
||||
const websocket_connected_color = isWebsocketConnected ? 'success' : 'error';
|
||||
const webrtc_connected_color = isWebrtcConnected ? 'suceess' : 'error';
|
||||
const webrtc_connected_color = isWebrtcConnected ? 'success' : 'error';
|
||||
sceneTree.object.visible = value;
|
||||
|
||||
return (
|
||||
<div className="StatusPanel">
|
||||
<Button // button with view in ar icon
|
||||
<Button
|
||||
className="StatusPanel-play-button"
|
||||
variant="contained"
|
||||
color="secondary"
|
||||
onClick={handlePlayChange}
|
||||
disabled={!isWebsocketConnected}
|
||||
style={{}}
|
||||
startIcon={training_icon}
|
||||
>
|
||||
{is_training_text}
|
||||
</Button>
|
||||
<Button // button with view in ar icon
|
||||
<Button
|
||||
className="StatusPanel-hide-scene-button"
|
||||
variant="outlined"
|
||||
onClick={handleChange}
|
||||
|
||||
@@ -91,6 +91,7 @@ export default function ViewerWindow(props) {
|
||||
|
||||
// this is run once
|
||||
useEffect(() => {
|
||||
|
||||
viewportWidth = getViewportWidth();
|
||||
viewportHeight = getViewportHeight();
|
||||
|
||||
|
||||
Reference in new issue
Block a user