mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-14 02:07:54 -06:00
Fix Linux build & some warnings (#6438)
* Fix linux deps debug build * Use the same DL_CACHE for release build when building debug version of deps on Linux. This prevents downloading the same source packages twice, and avoid downloading again after deleting the build dir. * Fix debug build * Fix warnings "loop variable creates a copy from type" and "loop variable binds to a temporary constructed from type"
This commit is contained in:
parent
0d886a133f
commit
f136f04cfd
17 changed files with 45 additions and 38 deletions
|
@ -334,8 +334,8 @@ bool Emboss::divide_segments_for_close_point(ExPolygons &expolygons, double dist
|
|||
const Points &poly_pts = poly.points;
|
||||
const Point &line_a = poly_pts[id.point_index];
|
||||
const Point &line_b = (!ids.is_last_point(id)) ? poly_pts[id.point_index + 1] : poly_pts.front();
|
||||
assert(line_a == lines[index].a.cast<int>());
|
||||
assert(line_b == lines[index].b.cast<int>());
|
||||
assert(line_a == lines[index].a.cast<coord_t>());
|
||||
assert(line_b == lines[index].b.cast<coord_t>());
|
||||
if (p == line_a || p == line_b) continue;
|
||||
|
||||
divs.emplace_back(p, index);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue