Rename ColorChange to FilamentChange

I think this is more clear to the users what this should actually do.
This commit is contained in:
Ghostkeeper 2018-03-07 11:00:42 +01:00
parent 6cae5c2e35
commit ecfb62b69e
No known key found for this signature in database
GPG key ID: 5252B696FB5E7C7A

View file

@ -2,17 +2,15 @@
# under the terms of the AGPLv3 or higher # under the terms of the AGPLv3 or higher
from ..Script import Script from ..Script import Script
#from UM.Logger import Logger
# from cura.Settings.ExtruderManager import ExtruderManager
class ColorChange(Script): class FilamentChange(Script):
def __init__(self): def __init__(self):
super().__init__() super().__init__()
def getSettingDataString(self): def getSettingDataString(self):
return """{ return """{
"name":"Color Change", "name":"Filament Change",
"key": "ColorChange", "key": "FilamentChange",
"metadata": {}, "metadata": {},
"version": 2, "version": 2,
"settings": "settings":
@ -60,9 +58,9 @@ class ColorChange(Script):
if later_retract is not None and later_retract > 0.: if later_retract is not None and later_retract > 0.:
color_change = color_change + (" L%.2f" % later_retract) color_change = color_change + (" L%.2f" % later_retract)
color_change = color_change + " ; Generated by ColorChange plugin" color_change = color_change + " ; Generated by FilamentChange plugin"
layer_targets = layer_nums.split(',') layer_targets = layer_nums.split(",")
if len(layer_targets) > 0: if len(layer_targets) > 0:
for layer_num in layer_targets: for layer_num in layer_targets:
layer_num = int(layer_num.strip()) layer_num = int(layer_num.strip())