From cbb3328f508bfd5ca312af968e7300a879a5c7cf Mon Sep 17 00:00:00 2001 From: AC Gillette Date: Mon, 14 Jul 2025 17:05:12 -0700 Subject: [PATCH] replace fn with direct downloadFile import to fix issue where fn was not found. --- src/webgl/p5.Geometry.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/webgl/p5.Geometry.js b/src/webgl/p5.Geometry.js index 22e3a481c4..d8b1f2e0b5 100644 --- a/src/webgl/p5.Geometry.js +++ b/src/webgl/p5.Geometry.js @@ -11,6 +11,7 @@ import * as constants from '../core/constants'; import { DataArray } from './p5.DataArray'; import { Vector } from '../math/p5.Vector'; +import { downloadFile } from '../io/utilities'; class Geometry { constructor(detailX, detailY, callback, renderer) { @@ -413,7 +414,7 @@ class Geometry { }); const blob = new Blob([objStr], { type: 'text/plain' }); - fn.downloadFile(blob, fileName , 'obj'); + downloadFile(blob, fileName , 'obj'); } @@ -536,7 +537,7 @@ class Geometry { modelOutput += 'endsolid ' + name + '\n'; } const blob = new Blob([modelOutput], { type: 'text/plain' }); - fn.downloadFile(blob, fileName, 'stl'); + downloadFile(blob, fileName, 'stl'); } /**