mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-25 07:33:57 -06:00
Fix material update upon loading a machine
CURA-5327
This commit is contained in:
parent
7a6e711276
commit
74e3785a03
1 changed files with 5 additions and 0 deletions
|
@ -306,6 +306,11 @@ class MachineManager(QObject):
|
||||||
for position, extruder in global_stack.extruders.items():
|
for position, extruder in global_stack.extruders.items():
|
||||||
material_dict[position] = extruder.material.getMetaDataEntry("base_file")
|
material_dict[position] = extruder.material.getMetaDataEntry("base_file")
|
||||||
self._current_root_material_id = material_dict
|
self._current_root_material_id = material_dict
|
||||||
|
|
||||||
|
# Update materials to make sure that the diameters match with the machine's
|
||||||
|
for position in global_stack.extruders:
|
||||||
|
self._updateMaterialWithVariant(position)
|
||||||
|
|
||||||
global_quality = global_stack.quality
|
global_quality = global_stack.quality
|
||||||
quality_type = global_quality.getMetaDataEntry("quality_type")
|
quality_type = global_quality.getMetaDataEntry("quality_type")
|
||||||
global_quality_changes = global_stack.qualityChanges
|
global_quality_changes = global_stack.qualityChanges
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue