A 1.2 MB pure-Rust rewrite of headless Blender built for AI agents — 3D B-rep modeling engine, CLI, and MCP server
Boolean: a panic on the worker thread propagates instead of dropping half the result
finalpantasy69f5d4405f02
diff --git a/crates/forma-core/src/boolean.rs b/crates/forma-core/src/boolean.rsindex 39683b0..6882710 100644--- a/crates/forma-core/src/boolean.rs+++ b/crates/forma-core/src/boolean.rs@@ -966,7 +966,8 @@ fn run_bvh_csg(a: &PolyMesh, b: &PolyMesh, op: BoolOp, b_tag: Option<&str>, op_istd::thread::scope(|s| {let h_b = s.spawn(|| process_csg_side(&tris_b, &tris_a, &bvh_a, op, false));let mut out_a = process_csg_side(&tris_a, &tris_b, &bvh_b, op, true);- let out_b = h_b.join().unwrap_or_default();+ // A panic on the worker side must not turn into a silently missing half of the result.+ let out_b = h_b.join().unwrap_or_else(|p| std::panic::resume_unwind(p));out_a.extend(out_b);out_a})