Skip to content

Commit

Permalink
Fixed small issue with perimeter path splitting could cause negative …
Browse files Browse the repository at this point in the history
…flow/feedrates.
  • Loading branch information
lordofhyphens committed Dec 9, 2016
1 parent fde6e2e commit d1bd9ab
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions xs/src/libslic3r/ExtrusionEntity.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -164,8 +164,10 @@ ExtrusionLoop::split_at(const Point &point)
}

// now split path_idx in two parts
ExtrusionPath p1(this->paths[path_idx].role), p2(this->paths[path_idx].role);
this->paths[path_idx].polyline.split_at(p, &p1.polyline, &p2.polyline);
const ExtrusionPath &path = this->paths[path_idx];
ExtrusionPath p1(path.role, path.mm3_per_mm, path.width, path.height);
ExtrusionPath p2(path.role, path.mm3_per_mm, path.width, path.height);
path.polyline.split_at(p, &p1.polyline, &p2.polyline);

if (this->paths.size() == 1) {
if (! p1.polyline.is_valid())
Expand Down

0 comments on commit d1bd9ab

Please sign in to comment.