diff options
author | metamuffin <metamuffin@disroot.org> | 2025-01-09 23:22:30 +0100 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2025-01-09 23:22:30 +0100 |
commit | e2a3c56206080008f34072b5c7cf2ef961e0ed49 (patch) | |
tree | e879816e60281f941cfabee69ee86b06e9a051aa /world | |
parent | 77486da1c97c988205c8bb117b1168a1a0ef6a46 (diff) | |
download | weareserver-e2a3c56206080008f34072b5c7cf2ef961e0ed49.tar weareserver-e2a3c56206080008f34072b5c7cf2ef961e0ed49.tar.bz2 weareserver-e2a3c56206080008f34072b5c7cf2ef961e0ed49.tar.zst |
new prefab index
Diffstat (limited to 'world')
-rw-r--r-- | world/src/main.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/world/src/main.rs b/world/src/main.rs index 694d57b..5dbfd06 100644 --- a/world/src/main.rs +++ b/world/src/main.rs @@ -61,12 +61,12 @@ struct Args { /// Transcode all textures to WebP #[arg(short, long)] webp: bool, - /// Register to the prefab index - #[arg(short, long)] - name: Option<String>, /// Add skybox #[arg(short, long)] skybox: Option<PathBuf>, + /// Override prefab name + #[arg(short, long)] + name: Option<String>, } fn main() -> Result<()> { @@ -85,11 +85,11 @@ fn main() -> Result<()> { let mut prefab = Prefab::default(); - prefab.name = gltf + prefab.name = args.name.or(gltf .default_scene() .map(|n| n.name()) .flatten() - .map(|n| n.to_owned()); + .map(|n| n.to_owned())); for node in gltf.nodes() { if let Some(mesh) = node.mesh() { |