This commit is contained in:
Pierre Jacquier
2024-11-29 19:51:56 -05:00
parent 5080e304b9
commit be569c91de

View File

@ -571,13 +571,13 @@ export const ModelingMachineProvider = ({
return canSweep
},
'has valid loft selection': ({ context: { selectionRanges } }) => {
console.log('selectionRanges', selectionRanges)
const hasNoSelection =
selectionRanges.graphSelections.length === 0 ||
isRangeBetweenCharacters(selectionRanges) ||
isSelectionLastLine(selectionRanges, codeManager.code)
if (hasNoSelection) {
// TODO: can't select more than one face now if not done prior
// they have no selection, we should enable the button
// so they can select the faces through the cmdbar
// BUT only if there's two extrudable geometry
@ -585,11 +585,6 @@ export const ModelingMachineProvider = ({
return doesSceneHaveSweepableSketch(kclManager.ast, count)
}
console.log(
'isSketchPipe(selectionRanges)',
isSketchPipe(selectionRanges)
)
const canLoft = canLoftSelection(selectionRanges)
if (err(canLoft)) return false
return canLoft