WIP selections
This commit is contained in:
@ -589,8 +589,6 @@ export const ModelingMachineProvider = ({
|
|||||||
'isSketchPipe(selectionRanges)',
|
'isSketchPipe(selectionRanges)',
|
||||||
isSketchPipe(selectionRanges)
|
isSketchPipe(selectionRanges)
|
||||||
)
|
)
|
||||||
// TODO: The way this is isn't letting me loft
|
|
||||||
// if (!isSketchPipe(selectionRanges)) return false
|
|
||||||
|
|
||||||
const canLoft = canLoftSelection(selectionRanges)
|
const canLoft = canLoftSelection(selectionRanges)
|
||||||
if (err(canLoft)) return false
|
if (err(canLoft)) return false
|
||||||
|
|||||||
@ -567,9 +567,11 @@ export function canLoftSelection(selection: Selections) {
|
|||||||
console.log('commonNodes', commonNodes)
|
console.log('commonNodes', commonNodes)
|
||||||
console.log('isSketchPipe', isSketchPipe(selection))
|
console.log('isSketchPipe', isSketchPipe(selection))
|
||||||
return (
|
return (
|
||||||
// TODO: check if we need ifSketchPipe or other things enabled
|
!!isCursorInSketchCommandRange(
|
||||||
// !!isSketchPipe(selection) &&
|
engineCommandManager.artifactGraph,
|
||||||
|
selection) &&
|
||||||
commonNodes.length > 1 &&
|
commonNodes.length > 1 &&
|
||||||
|
// TODO: check if needed
|
||||||
// commonNodes.every((n) => !hasSketchPipeBeenExtruded(n.selection, n.ast)) &&
|
// commonNodes.every((n) => !hasSketchPipeBeenExtruded(n.selection, n.ast)) &&
|
||||||
commonNodes.every((n) => nodeHasClose(n) || nodeHasCircle(n)) &&
|
commonNodes.every((n) => nodeHasClose(n) || nodeHasCircle(n)) &&
|
||||||
commonNodes.every((n) => !nodeHasExtrude(n))
|
commonNodes.every((n) => !nodeHasExtrude(n))
|
||||||
|
|||||||
Reference in New Issue
Block a user