mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-13 04:29:04 +08:00
Call repair() before trying to export object (because it tries to generate shared vertices and that method is apparently fragile).
This commit is contained in:
parent
a829b0f98a
commit
510ba4eda4
@ -156,6 +156,9 @@ bool
|
||||
OBJ::write(const Model& model, std::string output_file)
|
||||
{
|
||||
TriangleMesh mesh = model.mesh();
|
||||
// pre-emptively repair because object write can break
|
||||
// output
|
||||
mesh.repair();
|
||||
return OBJ::write(mesh, output_file);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user