diff --git a/fj-app/src/main.rs b/fj-app/src/main.rs index e8b3afe48..4ccf11734 100644 --- a/fj-app/src/main.rs +++ b/fj-app/src/main.rs @@ -83,7 +83,7 @@ fn main() -> anyhow::Result<()> { let shape_processor = ShapeProcessor::new(args.tolerance)?; if let Some(path) = args.export { - let shape = model.load(¶meters)?; + let shape = model.load_once(¶meters)?; let shape = shape_processor.process(&shape); let mut mesh_maker = MeshMaker::new(); diff --git a/fj-app/src/model.rs b/fj-app/src/model.rs index 53b6c40a8..acba8d608 100644 --- a/fj-app/src/model.rs +++ b/fj-app/src/model.rs @@ -56,7 +56,7 @@ impl Model { }) } - pub fn load( + pub fn load_once( &self, arguments: &HashMap, ) -> Result { @@ -186,7 +186,7 @@ impl Watcher { pub fn receive(&self) -> Option { match self.channel.try_recv() { Ok(()) => { - let shape = match self.model.load(&self.parameters) { + let shape = match self.model.load_once(&self.parameters) { Ok(shape) => shape, Err(Error::Compile) => { // It would be better to display an error in the UI,