Collision: Add check to prevent accidental overwrite

This commit is contained in:
Phillip Stephens
2023-02-17 23:24:58 -08:00
parent bfa1c87d5c
commit 82f912a70c
+2
View File
@@ -174,6 +174,8 @@ pub fn run(args: Args) -> Result<()> {
}
fn convert(args: ConvertArgs) -> Result<()> {
ensure!(args.input != args.out);
// TODO: Migrate to real model format (glTF?)
let data = map_file(&args.input)?;
let (form_desc, mut col_data, remain) = FormDescriptor::slice(&data, Endian::Little)?;