mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 17:19:00 +08:00
CURA-4606 fallback value for layer height must come from definition
This commit is contained in:
parent
6cc65e97f2
commit
21c4753443
@ -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…
x
Reference in New Issue
Block a user