Skip to content

Commit

Permalink
Rename PBR to Pbr (#27)
Browse files Browse the repository at this point in the history
This matches Rust style
  • Loading branch information
adamchalmers authored Dec 13, 2023
1 parent 4cfeb6e commit 4ac8812
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion modeling-cmds/src/def_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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),
}
Expand Down
2 changes: 1 addition & 1 deletion modeling-cmds/src/each_cmd.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions modeling-cmds/src/impl_traits.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 4ac8812

Please sign in to comment.