feat: enhance Node struct with serialization support
This commit is contained in:
@@ -80,10 +80,11 @@ lazy_static::lazy_static! {
|
|||||||
static ref CTRL: Mutex<Ctrl> = Mutex::new(Ctrl::default());
|
static ref CTRL: Mutex<Ctrl> = Mutex::new(Ctrl::default());
|
||||||
}
|
}
|
||||||
|
|
||||||
#[derive(Default)]
|
#[derive(Default, Clone, serde::Serialize, serde::Deserialize)]
|
||||||
struct Node {
|
struct Node {
|
||||||
id: u64,
|
id: u64,
|
||||||
name: String,
|
name: String,
|
||||||
|
#[serde(skip)]
|
||||||
transform: Mat4,
|
transform: Mat4,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user