feat: enhance Node struct with serialization support

This commit is contained in:
MayaTheShy
2025-11-08 14:43:25 -05:00
parent a74394c937
commit 52f3661bbb

View File

@@ -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,
} }