Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions modeling-cmds/openapi/api.json
Original file line number Diff line number Diff line change
Expand Up @@ -3615,6 +3615,15 @@
"type": "number",
"format": "float"
},
"backface_color": {
"nullable": true,
"description": "Color of the backface",
"allOf": [
{
"$ref": "#/components/schemas/Color"
}
]
},
"color": {
"description": "Color of the new material",
"allOf": [
Expand Down
3 changes: 3 additions & 0 deletions modeling-cmds/src/def_enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -802,6 +802,9 @@ define_modeling_cmd_enum! {
pub roughness: f32,
/// Ambient Occlusion of the new material
pub ambient_occlusion: f32,
/// Color of the backface
#[serde(default, skip_serializing_if = "Option::is_none")]
pub backface_color: Option<Color>,
}
/// What type of entity is this?
#[derive(Debug, Clone, PartialEq, Serialize, Deserialize, JsonSchema, ModelingCmdVariant)]
Expand Down
4 changes: 2 additions & 2 deletions modeling-session/examples/cube_png.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ const CUBE_WIDTH: LengthUnit = LengthUnit(100.0);
async fn main() -> Result<()> {
// Set up the API client.
let token = env::var("ZOO_API_TOKEN")
.or_else(|_| env::var("KITTYCAD_API_TOKEN")) // legacy name
.context("You must set $ZOO_API_TOKEN")?;
.or_else(|_| env::var("KITTYCAD_API_TOKEN")) // legacy name
.context("You must set $ZOO_API_TOKEN")?;
let client = kittycad::Client::new(token);

// Where should the final PNG be saved?
Expand Down
Loading