snip snip
This commit is contained in:
		| @ -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", | ||||
|  | ||||
| @ -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<RwLock<IndexMap<uuid::Uuid, (WebSocketRequest, kcl_lib::SourceRange)>>>, | ||||
|     core_test: Arc<RwLock<String>>, | ||||
|     default_planes: Arc<RwLock<Option<DefaultPlanes>>>, | ||||
|     execution_kind: Arc<RwLock<ExecutionKind>>, | ||||
| } | ||||
|  | ||||
| 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, | ||||
|  | ||||
| @ -11,7 +11,6 @@ use uuid::Uuid; | ||||
| use wasm_bindgen::prelude::*; | ||||
|  | ||||
| use crate::{ | ||||
|     engine::ExecutionKind, | ||||
|     errors::{KclError, KclErrorDetails}, | ||||
|     execution::{ArtifactCommand, DefaultPlanes, IdGenerator}, | ||||
|     SourceRange, | ||||
|  | ||||
		Reference in New Issue
	
	Block a user