Enable Boolean op deletion from the feature tree (#6637)

* Can't Delete Union From Feature Tree
Fixes #6584. Works locally but the new tests don't appear to work yet

* Change tests to right-click > Delete
This commit is contained in:
Pierre Jacquier
2025-05-02 15:34:21 -04:00
committed by GitHub
parent ace9a59a45
commit 00553c34ab
2 changed files with 19 additions and 1 deletions

View File

@ -161,6 +161,7 @@ export async function deleteFromSelection(
varDec.node.init.type === 'PipeExpression') ||
selection.artifact?.type === 'sweep' ||
selection.artifact?.type === 'plane' ||
selection.artifact?.type === 'compositeSolid' ||
selection.artifact?.type === 'helix' ||
!selection.artifact // aka expected to be a shell at this point
) {
@ -170,6 +171,7 @@ export async function deleteFromSelection(
selection.artifact &&
selection.artifact.type !== 'sweep' &&
selection.artifact.type !== 'plane' &&
selection.artifact.type !== 'compositeSolid' &&
selection.artifact.type !== 'helix'
) {
const varDecName = varDec.node.id.name