mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-13 11:01:50 +08:00
Fixed small issue with perimeter path splitting could cause negative flow/feedrates.
This commit is contained in:
parent
fde6e2e61d
commit
d1bd9ab5b7
@ -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())
|
||||
|
Loading…
x
Reference in New Issue
Block a user