Run curv inside of /tmp
When exporting an stl it writes temporary files which is not allowed when deployed to aws unless it's in temp.
This commit is contained in:
@@ -25,7 +25,7 @@ const IdeViewer = ({
|
||||
})
|
||||
thunkDispatch((dispatch, getState) => {
|
||||
const state = getState()
|
||||
if (['png', 'INIT'].includes(state?.objectData?.type)) {
|
||||
if (['png', 'INIT'].includes(state?.objectData?.type) && (ideType === 'openscad' || state?.objectData?.type === 'INIT' || !state?.objectData?.type)) {
|
||||
dispatch({ type: 'setLoading' })
|
||||
requestRender({
|
||||
state,
|
||||
|
||||
@@ -218,7 +218,7 @@ export function PureIdeViewer({
|
||||
)}
|
||||
<div // eslint-disable-line jsx-a11y/no-static-element-interactions
|
||||
className={`opacity-0 absolute inset-0 transition-opacity duration-500 ${
|
||||
ideType === 'curv' ? // TODO hide axes while curve doesn't have a controllable camera
|
||||
ideType === 'curv' && dataType === 'png' ? // TODO hide axes while curve doesn't have a controllable camera
|
||||
'opacity-0' :
|
||||
!(isDragging || dataType !== 'png')
|
||||
? 'hover:opacity-50'
|
||||
@@ -230,7 +230,7 @@ export function PureIdeViewer({
|
||||
<Controls
|
||||
onDragStart={() => setIsDragging(true)}
|
||||
onInit={onInit}
|
||||
onCameraChange={onCameraChange}
|
||||
onCameraChange={() => {onCameraChange(); setIsDragging(false)}}
|
||||
controlsRef={controlsRef}
|
||||
camera={camera}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user