fix sketch on face after updates to rust side artifact graph
This commit is contained in:
@ -768,12 +768,12 @@ export const ModelingMachineProvider = ({
|
|||||||
})
|
})
|
||||||
if (err(sketchPaths)) return Promise.reject(sketchPaths)
|
if (err(sketchPaths)) return Promise.reject(sketchPaths)
|
||||||
const noCodeRefErr = new Error('No plane codeRef')
|
const noCodeRefErr = new Error('No plane codeRef')
|
||||||
if (!('codeRef' in plane)) return Promise.reject(noCodeRefErr)
|
if (!('faceCodeRef' in plane)) return Promise.reject(noCodeRefErr)
|
||||||
if (!plane.codeRef) return Promise.reject(noCodeRefErr)
|
if (!plane.faceCodeRef) return Promise.reject(noCodeRefErr)
|
||||||
return {
|
return {
|
||||||
sketchEntryNodePath: sketchPathToNode || [],
|
sketchEntryNodePath: sketchPathToNode || [],
|
||||||
sketchNodePaths: sketchPaths,
|
sketchNodePaths: sketchPaths,
|
||||||
planeNodePath: plane.codeRef.pathToNode,
|
planeNodePath: plane.faceCodeRef.pathToNode,
|
||||||
zAxis: info.sketchDetails.zAxis || null,
|
zAxis: info.sketchDetails.zAxis || null,
|
||||||
yAxis: info.sketchDetails.yAxis || null,
|
yAxis: info.sketchDetails.yAxis || null,
|
||||||
origin: info.sketchDetails.origin.map(
|
origin: info.sketchDetails.origin.map(
|
||||||
|
Reference in New Issue
Block a user