mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-08 07:27:41 -06:00
Add safety check for seam_slope_start_height
This commit is contained in:
parent
1943259ac3
commit
550c4d6ca1
3 changed files with 18 additions and 4 deletions
|
@ -4679,6 +4679,8 @@ std::string GCode::extrude_loop(ExtrusionLoop loop, std::string description, dou
|
|||
double h = paths.front().height;
|
||||
start_slope_ratio = m_config.seam_slope_start_height.value / h;
|
||||
}
|
||||
if (start_slope_ratio >= 1)
|
||||
start_slope_ratio = 0.99;
|
||||
|
||||
double loop_length = 0.;
|
||||
for (const auto & path : paths) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue