mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-03 02:00:39 +08:00
Merge pull request #3609 from lordofhyphens/3597-fix-path-references
Fixed small issue with perimeter path splitting could cause negative …
This commit is contained in:
commit
540d632bbb
@ -164,8 +164,10 @@ ExtrusionLoop::split_at(const Point &point)
|
|||||||
}
|
}
|
||||||
|
|
||||||
// now split path_idx in two parts
|
// now split path_idx in two parts
|
||||||
ExtrusionPath p1(this->paths[path_idx].role), p2(this->paths[path_idx].role);
|
const ExtrusionPath &path = this->paths[path_idx];
|
||||||
this->paths[path_idx].polyline.split_at(p, &p1.polyline, &p2.polyline);
|
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 (this->paths.size() == 1) {
|
||||||
if (! p1.polyline.is_valid())
|
if (! p1.polyline.is_valid())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user