Use .container property rather than deprecated getContainer() function

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-09-10 14:56:16 +02:00
parent 47e1dbe38d
commit 0b92c3f3df
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276

View file

@ -119,7 +119,7 @@ class IntentModel(ListModel):
# Get layer_height from the quality profile for the GlobalStack
if quality_group.node_for_global is None:
return float(default_layer_height)
container = quality_group.node_for_global.getContainer()
container = quality_group.node_for_global.container
layer_height = default_layer_height
if container and container.hasProperty("layer_height", "value"):