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