mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Remove deprecated ContainerNode.getChildNode(...) calls.
part of CURA-6600
This commit is contained in:
parent
7fb9642e45
commit
1609138d4d
1 changed files with 4 additions and 4 deletions
|
@ -206,10 +206,10 @@ class MaterialManager(QObject):
|
|||
# Fallback for "fdmprinter" if the machine-specific materials cannot be found
|
||||
if machine_node is None:
|
||||
machine_node = machine_nozzle_buildplate_material_map.get(self._default_machine_definition_id)
|
||||
if machine_node is not None and nozzle_name is not None:
|
||||
nozzle_node = machine_node.getChildNode(nozzle_name)
|
||||
if nozzle_node is not None and buildplate_name is not None:
|
||||
buildplate_node = nozzle_node.getChildNode(buildplate_name)
|
||||
if machine_node is not None and nozzle_name is not None and nozzle_name in machine_node.children_map:
|
||||
nozzle_node = machine_node.children_map[nozzle_name]
|
||||
if nozzle_node is not None and buildplate_name is not None and buildplate_name in nozzle_node.children_map:
|
||||
buildplate_node = nozzle_node.children_map[buildplate_name]
|
||||
|
||||
# Fallback mechanism of finding materials:
|
||||
# 1. buildplate-specific material
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue