diff --git a/public/kcl-samples-manifest-fallback.json b/public/kcl-samples-manifest-fallback.json index 5879f59de..43fe30b1c 100644 --- a/public/kcl-samples-manifest-fallback.json +++ b/public/kcl-samples-manifest-fallback.json @@ -1,4 +1,11 @@ [ + { + "file": "main.kcl", + "pathFromProjectDirectoryToFirstFile": "3d-boaty/main.kcl", + "multipleFiles": true, + "title": "3D Boaty", + "description": "This is a slight remix of Depep1's original 3D Boaty (https://www.printables.com/model/1141963-3d-boaty). This is a tool used for benchmarking 3D FDM printers for bed adhesion, overhangs, bridging and top surface quality. The name of this file is a bit of misnomer, the shape of the object is a typical park bench." + }, { "file": "main.kcl", "pathFromProjectDirectoryToFirstFile": "80-20-rail/main.kcl", @@ -34,6 +41,13 @@ "title": "Car Wheel Assembly", "description": "A car wheel assembly with a rotor, tire, and lug nuts." }, + { + "file": "main.kcl", + "pathFromProjectDirectoryToFirstFile": "color-cube/main.kcl", + "multipleFiles": false, + "title": "Color Cube", + "description": "This is a color cube centered about the origin. It is used to help determine orientation in the scene." + }, { "file": "main.kcl", "pathFromProjectDirectoryToFirstFile": "cycloidal-gear/main.kcl", diff --git a/src/wasm-lib/kcl-to-core/src/conn_mock_core.rs b/src/wasm-lib/kcl-to-core/src/conn_mock_core.rs index 6b6b6e92e..e06f5712e 100644 --- a/src/wasm-lib/kcl-to-core/src/conn_mock_core.rs +++ b/src/wasm-lib/kcl-to-core/src/conn_mock_core.rs @@ -4,7 +4,7 @@ use anyhow::Result; use indexmap::IndexMap; use kcl_lib::{ exec::{ArtifactCommand, DefaultPlanes, IdGenerator}, - ExecutionKind, KclError, + KclError, }; use kittycad_modeling_cmds::{ self as kcmc, @@ -25,7 +25,6 @@ pub struct EngineConnection { batch_end: Arc>>, core_test: Arc>, default_planes: Arc>>, - execution_kind: Arc>, } impl EngineConnection { @@ -37,7 +36,6 @@ impl EngineConnection { batch_end: Arc::new(RwLock::new(IndexMap::new())), core_test: result, default_planes: Default::default(), - execution_kind: Default::default(), }) } @@ -373,18 +371,6 @@ impl kcl_lib::EngineManager for EngineConnection { Arc::new(RwLock::new(Vec::new())) } - async fn execution_kind(&self) -> ExecutionKind { - let guard = self.execution_kind.read().await; - *guard - } - - async fn replace_execution_kind(&self, execution_kind: ExecutionKind) -> ExecutionKind { - let mut guard = self.execution_kind.write().await; - let original = *guard; - *guard = execution_kind; - original - } - async fn default_planes( &self, id_generator: &mut IdGenerator, diff --git a/src/wasm-lib/kcl/src/engine/conn_wasm.rs b/src/wasm-lib/kcl/src/engine/conn_wasm.rs index df4c90f3d..a80b3994f 100644 --- a/src/wasm-lib/kcl/src/engine/conn_wasm.rs +++ b/src/wasm-lib/kcl/src/engine/conn_wasm.rs @@ -11,7 +11,6 @@ use uuid::Uuid; use wasm_bindgen::prelude::*; use crate::{ - engine::ExecutionKind, errors::{KclError, KclErrorDetails}, execution::{ArtifactCommand, DefaultPlanes, IdGenerator}, SourceRange,