mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-14 11:05:57 +08:00
Merge pull request #15581 from Ultimaker/CURA-10615_Fix_M600_Retracting_Filament_Enter
Cura 10615 fix m600 retracting filament enter
This commit is contained in:
commit
764e271e95
@ -1,4 +1,4 @@
|
|||||||
# Copyright (c) 2021 Ultimaker B.V.
|
# Copyright (c) 2023 Ultimaker B.V.
|
||||||
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher.
|
# The PostProcessingPlugin is released under the terms of the AGPLv3 or higher.
|
||||||
|
|
||||||
# Modification 06.09.2020
|
# Modification 06.09.2020
|
||||||
@ -199,7 +199,7 @@ class FilamentChange(Script):
|
|||||||
if enable_before_macro:
|
if enable_before_macro:
|
||||||
color_change = color_change + before_macro + "\n"
|
color_change = color_change + before_macro + "\n"
|
||||||
|
|
||||||
color_change = color_change + "M600\n"
|
color_change = color_change + "M600"
|
||||||
|
|
||||||
if not firmware_config:
|
if not firmware_config:
|
||||||
if initial_retract is not None and initial_retract > 0.:
|
if initial_retract is not None and initial_retract > 0.:
|
||||||
@ -213,13 +213,15 @@ class FilamentChange(Script):
|
|||||||
|
|
||||||
if x_pos is not None:
|
if x_pos is not None:
|
||||||
color_change = color_change + (" X%.2f" % x_pos)
|
color_change = color_change + (" X%.2f" % x_pos)
|
||||||
|
|
||||||
if y_pos is not None:
|
if y_pos is not None:
|
||||||
color_change = color_change + (" Y%.2f" % y_pos)
|
color_change = color_change + (" Y%.2f" % y_pos)
|
||||||
|
|
||||||
if z_pos is not None and z_pos > 0.:
|
if z_pos is not None and z_pos > 0.:
|
||||||
color_change = color_change + (" Z%.2f" % z_pos)
|
color_change = color_change + (" Z%.2f" % z_pos)
|
||||||
|
|
||||||
|
color_change = color_change + "\n"
|
||||||
|
|
||||||
if enable_after_macro:
|
if enable_after_macro:
|
||||||
color_change = color_change + after_macro + "\n"
|
color_change = color_change + after_macro + "\n"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user