mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-15 18:57:52 -06:00
Fix code-style
This commit is contained in:
parent
e983a9a9e7
commit
762a1b1bfd
13 changed files with 47 additions and 33 deletions
|
@ -104,6 +104,6 @@ class QualityProfilesDropDownMenuModel(ListModel):
|
|||
else:
|
||||
# Look for layer_height in the GlobalStack from material -> definition
|
||||
container = global_stack.definition
|
||||
if container.hasProperty("layer_height", "value"):
|
||||
if container and container.hasProperty("layer_height", "value"):
|
||||
layer_height = container.getProperty("layer_height", "value")
|
||||
return float(layer_height)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue