From 71eaac98b1597bf070f77efd79764fd3bb914ad1 Mon Sep 17 00:00:00 2001 From: Pierre Jacquier Date: Thu, 13 Feb 2025 14:13:39 -0500 Subject: [PATCH] Remove zoomToFit on extrude and revolve Could fix #5376 --- src/machines/modelingMachine.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/src/machines/modelingMachine.ts b/src/machines/modelingMachine.ts index 36926a8bb..c0b1bee83 100644 --- a/src/machines/modelingMachine.ts +++ b/src/machines/modelingMachine.ts @@ -684,11 +684,6 @@ export const modelingMachine = setup({ const updatedAst = await kclManager.updateAst(modifiedAst, true, { focusPath: [pathToRevolveArg], - zoomToFit: true, - zoomOnRangeAndType: { - range: selection.graphSelections[0]?.codeRef.range, - type: 'path', - }, }) await codeManager.updateEditorWithAstAndWriteToFile(updatedAst.newAst) @@ -1517,11 +1512,6 @@ export const modelingMachine = setup({ const updatedAst = await kclManager.updateAst(modifiedAst, true, { focusPath: [pathToExtrudeArg], - zoomToFit: true, - zoomOnRangeAndType: { - range: selection.graphSelections[0]?.codeRef.range, - type: 'path', - }, }) await codeManager.updateEditorWithAstAndWriteToFile(updatedAst.newAst)