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