mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Rename to comptabileMaterialDiameter
CURA-5834 This property returns the material diameter an extruder is compatible with, so this makes it more clear.
This commit is contained in:
parent
afa3e62dc1
commit
ea10d5e608
2 changed files with 3 additions and 3 deletions
|
@ -70,7 +70,7 @@ class ExtruderStack(CuraContainerStack):
|
|||
# If the machine has no requirement for the diameter, -1 is returned.
|
||||
# \return The filament diameter for the printer
|
||||
@property
|
||||
def materialDiameter(self) -> float:
|
||||
def comptabileMaterialDiameter(self) -> float:
|
||||
context = PropertyEvaluationContext(self)
|
||||
context.context["evaluate_from_container_index"] = _ContainerIndexes.Variant
|
||||
|
||||
|
@ -86,7 +86,7 @@ class ExtruderStack(CuraContainerStack):
|
|||
# \return The approximate filament diameter for the printer
|
||||
@pyqtProperty(float)
|
||||
def approximateMaterialDiameter(self) -> float:
|
||||
return round(float(self.materialDiameter))
|
||||
return round(float(self.comptabileMaterialDiameter))
|
||||
|
||||
## Overridden from ContainerStack
|
||||
#
|
||||
|
|
|
@ -926,7 +926,7 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
|||
build_plate_id = global_stack.variant.getId()
|
||||
|
||||
# get material diameter of this extruder
|
||||
machine_material_diameter = extruder_stack.materialDiameter
|
||||
machine_material_diameter = extruder_stack.comptabileMaterialDiameter
|
||||
material_node = material_manager.getMaterialNode(global_stack.definition.getId(),
|
||||
extruder_stack.variant.getName(),
|
||||
build_plate_id,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue