Skip to content

Commit

Permalink
add support for wall and cap
Browse files Browse the repository at this point in the history
  • Loading branch information
max-mrgrsk committed Feb 24, 2025
1 parent 3a5b5e5 commit eed7978
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/lang/std/artifactGraph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,13 @@ export function getSweepArtifactFromSelection(
)
if (err(_artifact)) return _artifact
sweepArtifact = _artifact
} else if (selection.artifact?.type === 'cap' || selection.artifact?.type === 'wall') {
const _artifact = getArtifactOfTypes(
{ key: selection.artifact.sweepId, types: ['sweep'] },
artifactGraph
)
if (err(_artifact)) return _artifact
sweepArtifact = _artifact
}
if (!sweepArtifact) return new Error('No sweep artifact found')

Expand Down

0 comments on commit eed7978

Please sign in to comment.