From 2c488e06172a8b3b50fa1408613c1a49934b9b5d Mon Sep 17 00:00:00 2001 From: benjamaan476 Date: Fri, 17 Jan 2025 15:15:22 +0000 Subject: [PATCH] Add PartialEq and ts derives --- modeling-cmds/src/def_enum.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/modeling-cmds/src/def_enum.rs b/modeling-cmds/src/def_enum.rs index 6d18e473..be57eb54 100644 --- a/modeling-cmds/src/def_enum.rs +++ b/modeling-cmds/src/def_enum.rs @@ -1046,7 +1046,9 @@ define_modeling_cmd_enum! { } /// Project an entity on to a plane. - #[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, ModelingCmdVariant)] + #[derive(Debug, Clone, Serialize, Deserialize, JsonSchema, ModelingCmdVariant, PartialEq)] + #[cfg_attr(feature = "ts-rs", derive(ts_rs::TS))] + #[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))] pub struct ProjectEntityToPlane { /// Which entity to project (vertex or edge). pub entity_id: Uuid,