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 named once where it's made (a closure of the game export's shape, the dupes check)

shinyobjectz38bd094357fe
diff --git a/apps/interchange/src/export.rs b/apps/interchange/src/export.rs
index 3df3f646..dd30a814 100644
--- a/apps/interchange/src/export.rs
+++ b/apps/interchange/src/export.rs
@@ -100,7 +100,8 @@ fn shape(expr: &str, out: &Path, meshes: &mut BTreeMap<String, String>) -> R<Val
None => {
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
- std::fs::create_dir_all(out.join("meshes")).map_err(|e| format!("{}: {e}", out.join("meshes").display()))?;
+ let dir = out.join("meshes");
+ std::fs::create_dir_all(&dir).map_err(|e| 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:") {