Skip to content

Commit

Permalink
Fixed issues in wipe tower brim (SPE-2049, #11708)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasmatena committed Nov 21, 2023
1 parent bbd7828 commit 80c9f53
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/libslic3r/GCode/WipeTowerIntegration.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,11 +162,12 @@ std::string WipeTowerIntegration::post_process_wipe_tower_moves(const WipeTower:
line_out << ch;
}

line = line_out.str();
boost::trim(line); // Remove leading and trailing spaces.

transformed_pos = Eigen::Rotation2Df(angle) * pos + translation;

if (transformed_pos != old_pos || never_skip) {
line = line_out.str();
boost::trim_left(line); // Remove leading spaces
if (transformed_pos != old_pos || never_skip || ! line.empty()) {
std::ostringstream oss;
oss << std::fixed << std::setprecision(3) << "G1";
if (transformed_pos.x() != old_pos.x() || never_skip)
Expand Down

0 comments on commit 80c9f53

Please sign in to comment.