small viewer bug fixes (#442)

small bug fixes
This commit is contained in:
evonneng authored and GitHub committed 2022-09-16 16:08:27 -07:00
1 parent 84024a4e73
commit ffe2c5d92d
4 files changed
+31653 -2

No files matched your search

File diff suppressed because it is too large. Load diff
@@ -120,7 +120,7 @@ export function RenderControls() {
// output_options
output_options: {
label: 'Output Render',
options: outputOptions,
options: [... new Set(outputOptions)],
value: outputChoice,
onChange: (v) => {
set_output_choice(v);
@@ -48,6 +48,8 @@ function CameraList(props) {
'Camera',
]);
transform_controls.attach(camera);
const viewer_buttons = document.getElementsByClassName("ViewerWindow-buttons")[0];
viewer_buttons.style.display = 'block';
};
const delete_camera = (index) => {
@@ -277,7 +277,7 @@ export default function ViewerWindow(props) {
<CameraToggle />
</div>
</div>
<div className="ViewerWindow-buttons">
<div className="ViewerWindow-buttons" style={{display: 'none'}}>
<TransformIcons sceneTree={sceneTree} />
</div>
<div className="ViewerWindow-render-crop-container">