Skip to content

Commit

Permalink
Don't fail when trying to serialize BackgroundPattern::Custom
Browse files Browse the repository at this point in the history
  • Loading branch information
zakarumych committed Jan 23, 2024
1 parent e843534 commit 56774a7
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/ui/background_pattern.rs
Original file line number Diff line number Diff line change
Expand Up @@ -191,9 +191,8 @@ pub enum BackgroundPattern {
/// Custom pattern.
/// Contains function with signature
/// `Fn(style: &SnarlStyle, viewport: &Viewport, ui: &mut Ui)`
#[cfg_attr(feature = "serde", serde(skip))]
#[cfg_attr(feature = "egui-probe", egui_probe(transparent))]
Custom(CustomBackground<'static>),
Custom(#[cfg_attr(feature = "serde", serde(skip))] CustomBackground<'static>),
}

impl PartialEq for BackgroundPattern {
Expand Down

0 comments on commit 56774a7

Please sign in to comment.