Skip to content

Commit

Permalink
Fixed reflection for flip configuration types
Browse files Browse the repository at this point in the history
  • Loading branch information
mbrea-c committed Feb 14, 2024
1 parent 79b568c commit 66e48ac
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion crates/bevy_animation_graph/src/flipping/config.rs
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
use bevy::reflect::Reflect;
use bevy::reflect::{std_traits::ReflectDefault, Reflect};
use regex::{escape, Regex};
use serde::{Deserialize, Serialize};

#[derive(Debug, Default, Reflect, Clone, Serialize, Deserialize)]
#[reflect(Default)]
pub struct FlipConfig {
pub name_mapper: FlipNameMapper,
}

#[derive(Debug, Reflect, Clone)]
#[reflect(Default)]
pub struct PatternMapper {
key_1: String,
key_2: String,
Expand Down Expand Up @@ -118,6 +120,7 @@ impl Default for PatternMapperSerial {
}

#[derive(Debug, Reflect, Clone, Serialize, Deserialize)]
#[reflect(Default)]
pub enum FlipNameMapper {
Pattern(PatternMapper),
}
Expand Down

0 comments on commit 66e48ac

Please sign in to comment.