landon 0.10.2

A collection of tools, data structures and methods for exporting Blender data (such as meshes and armatures) and preparing it for your rendering pipeline.
Documentation
use crate::{install_armature_to_json, install_mesh_to_json, Subcommand};

#[derive(Debug, StructOpt)]
pub struct InstallCmd {
    #[structopt(short = "m", long = "mesh-to-json")]
    mesh_to_json: bool,
    #[structopt(short = "a", long = "armature-to-json")]
    armature_to_json: bool,
}

impl Subcommand for InstallCmd {
    fn run(&self) -> Result<(), anyhow::Error> {
        if self.mesh_to_json {
            install_mesh_to_json()?;
        }

        if self.armature_to_json {
            install_armature_to_json()?;
        }

        Ok(())
    }
}