From 4ac88121049e1a77b95dbf2e6317bbc6b9f43641 Mon Sep 17 00:00:00 2001 From: Adam Chalmers Date: Tue, 12 Dec 2023 20:16:05 -0600 Subject: [PATCH] Rename PBR to Pbr (#27) This matches Rust style --- modeling-cmds/src/def_enum.rs | 2 +- modeling-cmds/src/each_cmd.rs | 2 +- modeling-cmds/src/impl_traits.rs | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/modeling-cmds/src/def_enum.rs b/modeling-cmds/src/def_enum.rs index f282c7dd..b920066d 100644 --- a/modeling-cmds/src/def_enum.rs +++ b/modeling-cmds/src/def_enum.rs @@ -160,7 +160,7 @@ pub enum ModelingCmd { /// Sketch on some entity (e.g. a plane, a face) EnableSketchMode(EnableSketchMode), /// Set the material properties of an object - ObjectSetMaterialParamsPBR(ObjectSetMaterialParamsPBR), + ObjectSetMaterialParamsPbr(ObjectSetMaterialParamsPbr), /// What is the distance between these two entities? EntityGetDistance(EntityGetDistance), } diff --git a/modeling-cmds/src/each_cmd.rs b/modeling-cmds/src/each_cmd.rs index 63b3a08f..a3c99f79 100644 --- a/modeling-cmds/src/each_cmd.rs +++ b/modeling-cmds/src/each_cmd.rs @@ -281,7 +281,7 @@ pub struct ObjectBringToFront { /// Set the material properties of an object #[derive(Debug, Clone, Serialize, Deserialize, JsonSchema)] -pub struct ObjectSetMaterialParamsPBR { +pub struct ObjectSetMaterialParamsPbr { /// Which object to change pub object_id: Uuid, /// Color of the new material diff --git a/modeling-cmds/src/impl_traits.rs b/modeling-cmds/src/impl_traits.rs index 68c06029..3723b73c 100644 --- a/modeling-cmds/src/impl_traits.rs +++ b/modeling-cmds/src/impl_traits.rs @@ -228,10 +228,10 @@ impl<'de> ModelingCmdVariant<'de> for SendObject { ModelingCmd::SendObject(self) } } -impl<'de> ModelingCmdVariant<'de> for ObjectSetMaterialParamsPBR { +impl<'de> ModelingCmdVariant<'de> for ObjectSetMaterialParamsPbr { type Output = (); fn into_enum(self) -> ModelingCmd { - ModelingCmd::ObjectSetMaterialParamsPBR(self) + ModelingCmd::ObjectSetMaterialParamsPbr(self) } } impl<'de> ModelingCmdVariant<'de> for EntitySetOpacity {