mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-11-02 20:52:20 -07:00
CURA-4606 fallback value for layer height must come from definition
This commit is contained in:
parent
6cc65e97f2
commit
21c4753443
1 changed files with 3 additions and 5 deletions
|
|
@ -90,9 +90,7 @@ class QualityProfilesModel(ListModel):
|
|||
layer_height = str(container.getProperty("layer_height", "value"))
|
||||
else:
|
||||
# Look for layer_height in the GlobalStack from material -> definition
|
||||
for idx in range(4):
|
||||
container = active_global_stack.getContainer(idx)
|
||||
if container.hasProperty("layer_height", "value"):
|
||||
layer_height = container.getProperty("layer_height", "value")
|
||||
break
|
||||
container = active_global_stack.definition
|
||||
if container.hasProperty("layer_height", "value"):
|
||||
layer_height = container.getProperty("layer_height", "value")
|
||||
return str(layer_height)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue