mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add default for max_layer setting in postprocessing script
This commit is contained in:
parent
a330ae12dc
commit
5e94e51e0c
1 changed files with 1 additions and 0 deletions
|
@ -49,6 +49,7 @@ class DisplayFilenameAndLayerOnLCD(Script):
|
|||
}"""
|
||||
|
||||
def execute(self, data):
|
||||
max_layer = 0
|
||||
if self.getSettingValueByKey("name") != "":
|
||||
name = self.getSettingValueByKey("name")
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue