Merge pull request #34084 from Xrayez/fix-slow-polyline
Fix severe performance drop while deflating polylines
This commit is contained in:
commit
7255d6c123
1 changed files with 1 additions and 1 deletions
|
@ -1158,7 +1158,7 @@ Vector<Vector<Point2> > Geometry::_polypath_offset(const Vector<Point2> &p_polyp
|
||||||
case END_SQUARE: et = etOpenSquare; break;
|
case END_SQUARE: et = etOpenSquare; break;
|
||||||
case END_ROUND: et = etOpenRound; break;
|
case END_ROUND: et = etOpenRound; break;
|
||||||
}
|
}
|
||||||
ClipperOffset co;
|
ClipperOffset co(2.0, 0.25 * SCALE_FACTOR); // Defaults from ClipperOffset.
|
||||||
Path path;
|
Path path;
|
||||||
|
|
||||||
// Need to scale points (Clipper's requirement for robust computation).
|
// Need to scale points (Clipper's requirement for robust computation).
|
||||||
|
|
Loading…
Reference in a new issue