diff options
author | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-30 15:46:38 +1000 |
---|---|---|
committer | omniscient <17525998+omnisci3nce@users.noreply.github.com> | 2024-07-30 15:46:38 +1000 |
commit | 4505fb6585885866ff9a76f76c00ed727d3bb818 (patch) | |
tree | 5a6fb84426827e818513632cf9bde8dca0300b4b /bindgen/rust/src/lib.rs | |
parent | bfae2fd3f7b367709f21a8b4fccab107e2e81797 (diff) |
wip
Diffstat (limited to 'bindgen/rust/src/lib.rs')
-rw-r--r-- | bindgen/rust/src/lib.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/bindgen/rust/src/lib.rs b/bindgen/rust/src/lib.rs index c8e56df..cfb999c 100644 --- a/bindgen/rust/src/lib.rs +++ b/bindgen/rust/src/lib.rs @@ -21,14 +21,14 @@ use serde::{Deserialize, Serialize}; /// Wrapper around a string that is the path to a gltf model **relative** to the configured /// `ASSETS` folder -#[derive(Debug, Serialize, Deserialize)] -pub struct ModelPath(String); +#[derive(Debug, Clone, Serialize, Deserialize)] +pub struct ModelPath(pub String); /// #[derive(Debug, Serialize, Deserialize)] pub struct ModelNode { - model_path: ModelPath, - transform: Transform, + pub model_path: ModelPath, + pub transform: Transform, } /// Scene that can be saved and loaded from disk @@ -63,4 +63,4 @@ pub enum Light { Point(ffi::PointLight), Directional(ffi::DirectionalLight), // Spot(ffi::Spotlight) -} +}
\ No newline at end of file |