diff --git a/Cargo.lock b/Cargo.lock index c1ae3f0f..7254c68f 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1957,7 +1957,7 @@ dependencies = [ [[package]] name = "kittycad-modeling-cmds" -version = "0.2.92" +version = "0.2.93" dependencies = [ "anyhow", "bson", diff --git a/modeling-cmds/Cargo.toml b/modeling-cmds/Cargo.toml index 019b7550..9d8811a4 100644 --- a/modeling-cmds/Cargo.toml +++ b/modeling-cmds/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "kittycad-modeling-cmds" -version = "0.2.92" +version = "0.2.93" edition = "2021" authors = ["KittyCAD, Inc."] description = "Commands in the KittyCAD Modeling API" diff --git a/modeling-cmds/src/def_enum.rs b/modeling-cmds/src/def_enum.rs index 76ef6e6c..72d85746 100644 --- a/modeling-cmds/src/def_enum.rs +++ b/modeling-cmds/src/def_enum.rs @@ -790,7 +790,7 @@ define_modeling_cmd_enum! { pub cut_type: CutType, /// The ID to use for the newly created fillet face. /// If not provided, the server will randomly generate one. - #[serde(default)] + #[serde(default, skip_serializing_if = "Option::is_none")] pub face_id: Option, } @@ -1221,6 +1221,8 @@ define_modeling_cmd_enum! { /// Set the units of the scene. /// For all following commands, the units will be interpreted as the given units. + /// Any previously executed commands will not be affected or have their units changed. + /// They will remain in the units they were originally executed in. #[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema, ModelingCmdVariant)] #[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))] #[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]