mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-06-04 11:14:17 +08:00
Fix of using already moved variable.
This commit is contained in:
parent
fa3b27d799
commit
8d4f86b84a
@ -316,9 +316,9 @@ Surfaces merge_bridges(
|
|||||||
// union_safety_offset_ex(acc)
|
// union_safety_offset_ex(acc)
|
||||||
|
|
||||||
for (ExPolygon &bridge_expolygon : merged_bridges) {
|
for (ExPolygon &bridge_expolygon : merged_bridges) {
|
||||||
Surface surface{ stBottomBridge, std::move(bridge_expolygon) };
|
|
||||||
const Lines lines{to_lines(diff_pl(to_polylines(bridge_expolygon), expand(expansions, float(SCALED_EPSILON))))};
|
const Lines lines{to_lines(diff_pl(to_polylines(bridge_expolygon), expand(expansions, float(SCALED_EPSILON))))};
|
||||||
auto [bridging_dir, unsupported_dist] = detect_bridging_direction(lines, to_polygons(bridge_expolygon));
|
auto [bridging_dir, unsupported_dist] = detect_bridging_direction(lines, to_polygons(bridge_expolygon));
|
||||||
|
Surface surface{ stBottomBridge, std::move(bridge_expolygon) };
|
||||||
surface.bridge_angle = M_PI + std::atan2(bridging_dir.y(), bridging_dir.x());
|
surface.bridge_angle = M_PI + std::atan2(bridging_dir.y(), bridging_dir.x());
|
||||||
result.push_back(std::move(surface));
|
result.push_back(std::move(surface));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user