Fix sketch-on-face sketches to be in the artifact graph (#5489)

* Add code ref to sketch-on-face artifacts

* Fix to add execution artifacts to the artifact graph

* Update output after including exec artifacts

* A snapshot a day keeps the bugs away! 📷🐛 (OS: namespace-profile-ubuntu-8-cores)

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
This commit is contained in:
Jonathan Tran
2025-02-28 16:06:26 -05:00
committed by GitHub
parent 3811c88b5c
commit 964347f43a
24 changed files with 147 additions and 53 deletions

View File

@ -666,6 +666,13 @@ export const ModelingMachineProvider = ({
if (event.data?.forceNewSketch) return false
if (artifactIsPlaneWithPaths(selectionRanges)) {
return true
} else if (selectionRanges.graphSelections[0]?.artifact) {
// See if the selection is "close enough" to be coerced to the plane later
const maybePlane = getPlaneFromArtifact(
selectionRanges.graphSelections[0].artifact,
engineCommandManager.artifactGraph
)
return !err(maybePlane)
}
if (
isCursorInFunctionDefinition(