mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-23 22:54:01 -06:00
WIP: Fix layer_height fetching that inherits the default
Fix layer height fetching for those quality profiles that inherits the layer height from the definition.
This commit is contained in:
parent
9dce0afaea
commit
171a05ae6a
1 changed files with 3 additions and 1 deletions
|
@ -88,10 +88,12 @@ class NewQualityProfilesModel(ListModel):
|
|||
unit = ""
|
||||
self._layer_height_unit = unit
|
||||
|
||||
default_layer_height = active_global_stack.definition.getProperty("layer_height", "value")
|
||||
|
||||
# Get layer_height from the quality profile for the GlobalStack
|
||||
container = quality_group.node_for_global.getContainer()
|
||||
|
||||
layer_height = ""
|
||||
layer_height = default_layer_height
|
||||
if container.hasProperty("layer_height", "value"):
|
||||
layer_height = str(container.getProperty("layer_height", "value"))
|
||||
else:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue