mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-20 03:43:52 +00:00
FIX: error wipe tower gcode
jira: STUDIO-13101 Change-Id: Ic1e2aa294c290e208074a6a65d6f80c705ab7dc6 (cherry picked from commit d4deb67dda0a6a92622f0126706110518b90a8bd)
This commit is contained in:
@@ -2653,8 +2653,8 @@ static WipeTower::ToolChangeResult merge_tcr(WipeTower::ToolChangeResult& first,
|
|||||||
assert(first.new_tool == second.initial_tool);
|
assert(first.new_tool == second.initial_tool);
|
||||||
WipeTower::ToolChangeResult out = first;
|
WipeTower::ToolChangeResult out = first;
|
||||||
if ((first.end_pos - second.start_pos).norm() > (float)EPSILON) {
|
if ((first.end_pos - second.start_pos).norm() > (float)EPSILON) {
|
||||||
std::string travel_gcode = "G1 X" + Slic3r::float_to_string_decimal_point(second.start_pos.x(), 3)
|
std::string travel_gcode = "G1 X" + Slic3r::float_to_string_decimal_point(second.start_pos.x(), 3) + " Y" +
|
||||||
+ " Y" + Slic3r::float_to_string_decimal_point(second.start_pos.y(), 3) +"F5400" + "\n";
|
Slic3r::float_to_string_decimal_point(second.start_pos.y(), 3) + " F5400" + "\n";
|
||||||
bool need_insert_travel = true;
|
bool need_insert_travel = true;
|
||||||
if (second.is_tool_change
|
if (second.is_tool_change
|
||||||
&& is_approx(second.start_pos.x(), second.tool_change_start_pos.x())
|
&& is_approx(second.start_pos.x(), second.tool_change_start_pos.x())
|
||||||
|
|||||||
Reference in New Issue
Block a user