Fix typing of approximate diameter and add typing to function for it

Seems I forgot to add typing and that's biting my bum right now.

Contributes to issue CURA-6600.
This commit is contained in:
Ghostkeeper 2019-08-27 17:21:05 +02:00
parent 3952366798
commit 9297890d78
No known key found for this signature in database
GPG key ID: 86BEF881AE2CF276
2 changed files with 2 additions and 2 deletions

View file

@ -151,7 +151,7 @@ class MaterialManagementModel(QObject):
# Find the preferred material.
extruder_stack = application.getMachineManager().activeStack
active_variant_name = extruder_stack.variant.getName()
approximate_diameter = str(extruder_stack.approximateMaterialDiameter)
approximate_diameter = int(extruder_stack.approximateMaterialDiameter)
machine_node = ContainerTree.getInstance().machines[application.getGlobalContainerStack().definition.getId()]
preferred_material_node = machine_node.variants[active_variant_name].preferredMaterial(approximate_diameter)