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