mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 09:17:52 -06:00
Workaround Clipper changing point coordinates while performing simplify_polygons(), thus causing a crash in Slic3r. #2306
This commit is contained in:
parent
a78be203aa
commit
9c93e52c8f
4 changed files with 14 additions and 7 deletions
|
@ -224,7 +224,7 @@ ExtrusionLoop::length() const
|
|||
return len;
|
||||
}
|
||||
|
||||
void
|
||||
bool
|
||||
ExtrusionLoop::split_at_vertex(const Point &point)
|
||||
{
|
||||
for (ExtrusionPaths::iterator path = this->paths.begin(); path != this->paths.end(); ++path) {
|
||||
|
@ -261,10 +261,10 @@ ExtrusionLoop::split_at_vertex(const Point &point)
|
|||
// we can now override the old path list with the new one and stop looping
|
||||
this->paths = new_paths;
|
||||
}
|
||||
return;
|
||||
return true;
|
||||
}
|
||||
}
|
||||
CONFESS("Point not found");
|
||||
return false;
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue