Skip to content

Commit 72095d1

Browse files
SetDefaultSystemProperties includes backface color (#1012)
* DefaultBackfaceSetColor * rename to SetDefaultBackfaceColor * redo openapi * Move into Set Default System Properties --------- Co-authored-by: Adam Chalmers <[email protected]>
1 parent f4d8956 commit 72095d1

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

modeling-cmds/openapi/api.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4652,9 +4652,20 @@
46524652
"description": "Set the default system properties used when a specific property isn't set.",
46534653
"type": "object",
46544654
"properties": {
4655+
"backface_color": {
4656+
"nullable": true,
4657+
"description": "The default color to use for all backfaces",
4658+
"default": null,
4659+
"allOf": [
4660+
{
4661+
"$ref": "#/components/schemas/Color"
4662+
}
4663+
]
4664+
},
46554665
"color": {
46564666
"nullable": true,
46574667
"description": "The default system color.",
4668+
"default": null,
46584669
"allOf": [
46594670
{
46604671
"$ref": "#/components/schemas/Color"

modeling-cmds/src/def_enum.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1203,7 +1203,11 @@ define_modeling_cmd_enum! {
12031203
#[cfg_attr(feature = "ts-rs", ts(export_to = "ModelingCmd.ts"))]
12041204
pub struct SetDefaultSystemProperties {
12051205
/// The default system color.
1206+
#[serde(default)]
12061207
pub color: Option<Color>,
1208+
/// The default color to use for all backfaces
1209+
#[serde(default)]
1210+
pub backface_color: Option<Color>,
12071211
}
12081212

12091213
/// Get type of the given curve.

0 commit comments

Comments
 (0)