Add viewall flag to openscad cli in prep for zoom to fit for scad previews
This commit is contained in:
@@ -18,12 +18,13 @@ export const use3dViewerResize = () => {
|
||||
})
|
||||
thunkDispatch((dispatch, getState) => {
|
||||
const state = getState()
|
||||
if (['png', 'INIT'].includes(state.objectData?.type)) {
|
||||
if (state.objectData?.type === 'png') {
|
||||
dispatch({ type: 'setLoading' })
|
||||
requestRender({
|
||||
state,
|
||||
dispatch,
|
||||
viewerSize: { width, height },
|
||||
viewAll: state.objectData?.type === 'INIT',
|
||||
})
|
||||
}
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user