mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 04:29:00 +08:00
Add default for max_layer setting in postprocessing script
This commit is contained in:
parent
a330ae12dc
commit
5e94e51e0c
@ -49,6 +49,7 @@ class DisplayFilenameAndLayerOnLCD(Script):
|
||||
}"""
|
||||
|
||||
def execute(self, data):
|
||||
max_layer = 0
|
||||
if self.getSettingValueByKey("name") != "":
|
||||
name = self.getSettingValueByKey("name")
|
||||
else:
|
||||
|
Loading…
x
Reference in New Issue
Block a user