Skip to content

Commit

Permalink
Skipping the first deretraction
Browse files Browse the repository at this point in the history
  • Loading branch information
jperry004 committed Apr 14, 2024
1 parent 168ff8a commit 746686d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion prusa_slicer_post_processing_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,7 +1153,9 @@ def arc2GCode(arcline:LineString,eStepsPerMM:float,arcidx=None,kwargs={})->list:
p1=p
GCodeLines.append(f";Arc {arcidx if arcidx else ' '} Length:{arcline.length}\n")
GCodeLines.append(p2GCode(p,F=kwargs.get('ArcTravelFeedRate',100*60)))#feedrate is mm/min...
GCodeLines.append(retractGCode(retract=False,kwargs=kwargs))
# Skip the first deretraction, assume slicer added it for layer change or travel
if arcidx > 0:
GCodeLines.append(retractGCode(retract=False,kwargs=kwargs))
GCodeLines.append(setFeedRateGCode(arcPrintSpeed))
else:
dist=p.distance(p1)
Expand Down

0 comments on commit 746686d

Please sign in to comment.