Skip to content

armgit / raea

Public Imported from GitHub
0

Render Anything Engine: tell your AI what to make. Videos, motion graphics, 3D and games as React and TypeScript, rendered on your own GPU. Rust + Bevy, macOS, Linux and Windows.

The meshes folder's error without a closure (the dupes check's near copy)

shinyobjectzb491a2777171
diff --git a/apps/interchange/src/export.rs b/apps/interchange/src/export.rs
index dd30a814..30af66f5 100644
--- a/apps/interchange/src/export.rs
+++ b/apps/interchange/src/export.rs
@@ -101,7 +101,9 @@ fn shape(expr: &str, out: &Path, meshes: &mut BTreeMap<String, String>) -> R<Val
let f = format!("meshes/mesh{k}.glb");
// export() empties meshes/ before the parts are walked, so the folder is made here, where a file first needs it
let dir = out.join("meshes");
- std::fs::create_dir_all(&dir).map_err(|e| format!("{}: {e}", dir.display()))?;
+ if let Err(e) = std::fs::create_dir_all(&dir) {
+ return Err(format!("{}: {e}", dir.display()));
+ }
// and as an .obj, which Godot imports as a mesh of its own (a .glb comes in as a scene)
let (glb, obj) = (out.join(&f).to_string_lossy().into_owned(), out.join(f.replace(".glb", ".obj")).to_string_lossy().into_owned());
match expr.strip_prefix("buffer:") {