Skip to content

Commit

Permalink
Fix "specific seam position" with "on vertex" case
Browse files Browse the repository at this point in the history
CURA-12340
During the previous refactoring for the seam, this settings combination has been overlooked and was not handled properly, resulting in a warning in the console and a wrong seam position.
  • Loading branch information
wawanbreton committed Dec 17, 2024
1 parent 1c7e9be commit d21af14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/PathOrderOptimizer.h
Original file line number Diff line number Diff line change
Expand Up @@ -747,7 +747,7 @@ class PathOrderOptimizer
}
else
{
if (path.seam_config_.type_ == EZSeamType::SHORTEST)
if (path.seam_config_.type_ == EZSeamType::SHORTEST || path.seam_config_.type_ == EZSeamType::USER_SPECIFIED)
{
main_criterion.criterion = std::make_shared<DistanceScoringCriterion>(points, target_pos);
}
Expand Down

0 comments on commit d21af14

Please sign in to comment.