fix sketch on face after updates to rust side artifact graph

This commit is contained in:
Kurt Hutten Irev-Dev
2025-02-04 15:23:35 +11:00
parent 40e4f2236f
commit 87eabef450

View File

@ -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(