4
0
mirror of https://github.com/nerfstudio-project/nerfstudio.git synced 2026-11-11 18:44:21 +08:00

Select render panel in render view (#1693)

* Select render panel in render view

* Update SidePanel.jsx
This commit is contained in:
Matthew Tancik 2023-04-05 13:46:59 -07:00 committed by GitHub
parent 2e74462c32
commit ec603634ed
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -87,6 +87,12 @@ function PanelContents(props: PanelContentsProps) {
);
const arrayChildren = React.Children.toArray(props.children);
React.useEffect(() => {
if (camera_choice === 'Render Camera') {
setTabState(1);
}
}, [camera_choice]);
return (
<>
<Box component="div" sx={{ borderBottom: 1, borderColor: 'divider' }}>