mirror of
https://github.com/nerfstudio-project/nerfstudio.git
synced 2026-12-02 13:59:10 +08:00
Select render panel in render view (#1693)
* Select render panel in render view * Update SidePanel.jsx
This commit is contained in:
1 parent
2e74462c32
commit
ec603634ed
1 file changed
+6
@@ -87,6 +87,12 @@ function PanelContents(props: PanelContentsProps) {
|
|||||||
);
|
);
|
||||||
const arrayChildren = React.Children.toArray(props.children);
|
const arrayChildren = React.Children.toArray(props.children);
|
||||||
|
|
||||||
|
React.useEffect(() => {
|
||||||
|
if (camera_choice === 'Render Camera') {
|
||||||
|
setTabState(1);
|
||||||
|
}
|
||||||
|
}, [camera_choice]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Box component="div" sx={{ borderBottom: 1, borderColor: 'divider' }}>
|
<Box component="div" sx={{ borderBottom: 1, borderColor: 'divider' }}>
|
||||||
|
|||||||
Reference in new issue
Block a user