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 {