Skip to content

Commit a59552d

Browse files
committed
fix serde crash
1 parent b1ccbc9 commit a59552d

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

editor/src/messages/portfolio/document/document_message_handler.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2282,7 +2282,7 @@ impl DocumentMessageHandler {
22822282
})
22832283
.for_label(checkbox_id.clone())
22842284
.widget_holder(),
2285-
TextLabel::new("Transform Pivot".to_string()).for_checkbox(&mut checkbox_id).widget_holder(),
2285+
TextLabel::new("Transform Origin".to_string()).for_checkbox(&mut checkbox_id).widget_holder(),
22862286
]
22872287
},
22882288
},

editor/src/messages/portfolio/document/overlays/utility_types.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ pub struct OverlaysVisibilitySettings {
5050
pub hover_outline: bool,
5151
pub selection_outline: bool,
5252
pub pivot: bool,
53+
#[serde(default)]
5354
pub origin: bool,
5455
pub path: bool,
5556
pub anchors: bool,

0 commit comments

Comments
 (0)