Skip to content

Commit

Permalink
Merge branch 'main' into PP-528_unused_extruder_settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Frederic98 committed Sep 27, 2024
2 parents af11d85 + 485b94f commit 5f9802a
Show file tree
Hide file tree
Showing 19 changed files with 182 additions and 27 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/release-process_release-candidate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ on:
required: true
type: string

publish_release_description:
description: 'Create the GitHub release (if existing, the description will be overridden based on the changelog)'
required: true
type: boolean

jobs:
parse-version:
name: Parse input version string
Expand Down Expand Up @@ -153,10 +158,12 @@ jobs:
ref: ${{ needs.parse-version.outputs.branch_name }}

- name: Extract changelog
if: ${{ inputs.publish_release_description }}
run: python ./scripts/extract_changelog.py --version ${{ needs.parse-version.outputs.version_major }}.${{ needs.parse-version.outputs.version_minor }}.${{ needs.parse-version.outputs.version_patch }} --changelog ./resources/texts/change_log.txt > formatted_changelog.txt

- name: Create release
uses: notpeelz/[email protected]
if: ${{ inputs.publish_release_description }}
with:
target: ${{ needs.create-tags.outputs.main_commit }}
tag: ${{ inputs.cura_version }}
Expand Down
2 changes: 1 addition & 1 deletion conandata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ requirements:
- "pynest2d/5.3.0"
- "native_cad_plugin/2.0.0"
requirements_internal:
- "fdm_materials/(latest)@internal/testing"
- "fdm_materials/5.8.1"
- "cura_private_data/(latest)@internal/testing"
urls:
default:
Expand Down
3 changes: 2 additions & 1 deletion cura/Settings/CuraContainerStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from PyQt6.QtCore import pyqtProperty, pyqtSignal, QObject

from UM.Application import Application
from UM.Decorators import override
from UM.Decorators import CachedMemberFunctions, override
from UM.FlameProfiler import pyqtSlot
from UM.Logger import Logger
from UM.Settings.ContainerStack import ContainerStack, InvalidContainerStackError
Expand Down Expand Up @@ -237,6 +237,7 @@ def setProperty(self, key: str, property_name: str, property_value: Any, contain
:param new_value: The new value to set the property to.
"""

CachedMemberFunctions.clearInstanceCache(self)
container_index = _ContainerIndexes.UserChanges
self._containers[container_index].setProperty(key, property_name, property_value, container, set_from_cache)

Expand Down
3 changes: 2 additions & 1 deletion cura/Settings/ExtruderStack.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from PyQt6.QtCore import pyqtProperty, pyqtSignal

from UM.Decorators import override
from UM.Decorators import CachedMemberFunctions, override
from UM.MimeTypeDatabase import MimeType, MimeTypeDatabase
from UM.Settings.ContainerStack import ContainerStack
from UM.Settings.ContainerRegistry import ContainerRegistry
Expand Down Expand Up @@ -86,6 +86,7 @@ def getCompatibleMaterialDiameter(self) -> float:
def setCompatibleMaterialDiameter(self, value: float) -> None:
old_approximate_diameter = self.getApproximateMaterialDiameter()
if self.getCompatibleMaterialDiameter() != value:
CachedMemberFunctions.clearInstanceCache(self)
self.definitionChanges.setProperty("material_diameter", "value", value)
self.compatibleMaterialDiameterChanged.emit()

Expand Down
6 changes: 6 additions & 0 deletions plugins/XmlMaterialProfile/XmlMaterialProfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from UM.PluginRegistry import PluginRegistry
from UM.Resources import Resources
from UM.Logger import Logger
from UM.Decorators import CachedMemberFunctions
import UM.Dictionary
from UM.Settings.InstanceContainer import InstanceContainer
from UM.Settings.ContainerRegistry import ContainerRegistry
Expand Down Expand Up @@ -71,6 +72,8 @@ def setMetaDataEntry(self, key, value, apply_to_all = True):
Logger.log("w", "Can't change metadata {key} of material {material_id} because it's read-only.".format(key = key, material_id = self.getId()))
return

CachedMemberFunctions.clearInstanceCache(self)

# Some metadata such as diameter should also be instantiated to be a setting. Go though all values for the
# "properties" field and apply the new values to SettingInstances as well.
new_setting_values_dict = {}
Expand Down Expand Up @@ -480,6 +483,7 @@ def _combineElement(first, second):
first.append(element)

def clearData(self):
CachedMemberFunctions.clearInstanceCache(self)
self._metadata = {
"id": self.getId(),
"name": ""
Expand Down Expand Up @@ -519,6 +523,8 @@ def getMetadataFromSerialized(cls, serialized: str, property_name: str) -> str:
def deserialize(self, serialized, file_name = None):
"""Overridden from InstanceContainer"""

CachedMemberFunctions.clearInstanceCache(self)

containers_to_add = []
# update the serialized data first
from UM.Settings.Interfaces import ContainerInterface
Expand Down
2 changes: 1 addition & 1 deletion resources/conandata.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version: "5.8.0"
version: "5.9.0-alpha.0"
1 change: 0 additions & 1 deletion resources/definitions/fdmextruder.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@
"default_value": 3,
"description": "The height difference between the tip of the nozzle and the lowest part of the print head.",
"label": "Nozzle Length",
"settable_globally": false,
"settable_per_extruder": true,
"settable_per_mesh": false,
"settable_per_meshgroup": false,
Expand Down
8 changes: 4 additions & 4 deletions resources/definitions/ultimaker_factor4.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -112,10 +112,10 @@
"machine_head_with_fans_polygon":
{
"default_value": [
[-30, -80],
[-30, 20],
[50, 20],
[50, -80]
[-35, -80],
[-35, 30],
[55, 30],
[55, -80]
]
},
"machine_heated_bed": { "default_value": true },
Expand Down
26 changes: 26 additions & 0 deletions resources/quality/ultimaker_factor4/um_f4_aa0.8_tpu_0.3mm.inst.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[general]
definition = ultimaker_factor4
name = Extra Fast
version = 4

[metadata]
material = generic_tpu
quality_type = verydraft
setting_version = 23
type = quality
variant = AA 0.8
weight = -3

[values]
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
infill_pattern = ='zigzag' if infill_sparse_density > 50 else 'cross_3d'
infill_sparse_density = 20
inset_direction = outside_in
material_print_temperature = =default_material_print_temperature + 5
max_flow_acceleration = 1
skin_material_flow = =material_flow * 0.9
skin_material_flow_layer_0 = 90
speed_layer_0 = 20
speed_print = 35

26 changes: 26 additions & 0 deletions resources/quality/ultimaker_factor4/um_f4_aa0.8_tpu_0.4mm.inst.cfg
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
[general]
definition = ultimaker_factor4
name = Sprint
version = 4

[metadata]
material = generic_tpu
quality_type = superdraft
setting_version = 23
type = quality
variant = AA 0.8
weight = -4

[values]
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
infill_pattern = ='zigzag' if infill_sparse_density > 50 else 'cross_3d'
infill_sparse_density = 20
inset_direction = outside_in
material_print_temperature = =default_material_print_temperature + 8
max_flow_acceleration = 1
skin_material_flow = =material_flow * 0.9
skin_material_flow_layer_0 = 90
speed_layer_0 = 20
speed_print = 35

Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,32 @@ variant = BB 0.4
weight = -1

[values]
acceleration_print = 1000.0
acceleration_support_bottom = 100
acceleration_support_interface = 1500
acceleration_support_interface = 1000
brim_replaces_support = False
build_volume_temperature = =40 if extruders_enabled_count > 1 else 35
default_material_bed_temperature = =0 if extruders_enabled_count > 1 else 60
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
initial_layer_line_width_factor = 150
gradual_support_infill_steps = 0
initial_layer_line_width_factor = 125
jerk_print = 10
material_flow_layer_0 = 90
max_flow_acceleration = 1
minimum_support_area = 4
prime_tower_flow = 90
prime_tower_min_volume = 15
retraction_min_travel = 5.0
retraction_prime_speed = 10.0
skin_material_flow = =material_flow * 0.93
speed_print = 30
support_angle = 45
support_infill_rate = 20
support_infill_sparse_thickness = =min(layer_height * 2, machine_nozzle_size * 3 / 4) if layer_height <= 0.15 / 0.4 * machine_nozzle_size else layer_height
support_interface_offset = 1
support_offset = 3
support_xy_distance = 2
support_z_distance = 0
switch_extruder_prime_speed = 10.0

17 changes: 14 additions & 3 deletions resources/quality/ultimaker_factor4/um_f4_bb0.4_pva_0.1mm.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,32 @@ variant = BB 0.4
weight = 0

[values]
acceleration_print = 1000.0
acceleration_support_bottom = 100
acceleration_support_interface = 1500
acceleration_support_interface = 1000
brim_replaces_support = False
build_volume_temperature = =40 if extruders_enabled_count > 1 else 35
default_material_bed_temperature = =0 if extruders_enabled_count > 1 else 60
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
initial_layer_line_width_factor = 150
gradual_support_infill_steps = 0
initial_layer_line_width_factor = 125
jerk_print = 10
material_flow_layer_0 = 90
max_flow_acceleration = 1
minimum_support_area = 4
prime_tower_flow = 90
prime_tower_min_volume = 15
retraction_min_travel = 5.0
retraction_prime_speed = 10.0
skin_material_flow = =material_flow * 0.93
speed_print = 50
speed_print = 30
support_angle = 45
support_infill_rate = 20
support_infill_sparse_thickness = =min(layer_height * 2, machine_nozzle_size * 3 / 4) if layer_height <= 0.15 / 0.4 * machine_nozzle_size else layer_height
support_interface_offset = 1
support_offset = 3
support_xy_distance = 2
support_z_distance = 0
switch_extruder_prime_speed = 10.0

17 changes: 14 additions & 3 deletions resources/quality/ultimaker_factor4/um_f4_bb0.4_pva_0.2mm.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,32 @@ variant = BB 0.4
weight = -2

[values]
acceleration_print = 1000.0
acceleration_support_bottom = 100
acceleration_support_interface = 1500
acceleration_support_interface = 1000
brim_replaces_support = False
build_volume_temperature = =40 if extruders_enabled_count > 1 else 35
default_material_bed_temperature = =0 if extruders_enabled_count > 1 else 60
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
initial_layer_line_width_factor = 150
gradual_support_infill_steps = 0
initial_layer_line_width_factor = 125
jerk_print = 10
material_flow_layer_0 = 90
max_flow_acceleration = 1
minimum_support_area = 4
prime_tower_flow = 90
prime_tower_min_volume = 15
retraction_min_travel = 5.0
retraction_prime_speed = 10.0
skin_material_flow = =material_flow * 0.93
speed_print = 50
speed_print = 30
support_angle = 45
support_infill_rate = 20
support_infill_sparse_thickness = =min(layer_height * 2, machine_nozzle_size * 3 / 4) if layer_height <= 0.15 / 0.4 * machine_nozzle_size else layer_height
support_interface_offset = 1
support_offset = 3
support_xy_distance = 2
support_z_distance = 0
switch_extruder_prime_speed = 10.0

17 changes: 14 additions & 3 deletions resources/quality/ultimaker_factor4/um_f4_bb0.4_pva_0.3mm.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,21 +12,32 @@ variant = BB 0.4
weight = -3

[values]
acceleration_print = 1000.0
acceleration_support_bottom = 100
acceleration_support_interface = 1500
acceleration_support_interface = 1000
brim_replaces_support = False
build_volume_temperature = =40 if extruders_enabled_count > 1 else 35
default_material_bed_temperature = =0 if extruders_enabled_count > 1 else 60
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
initial_layer_line_width_factor = 150
gradual_support_infill_steps = 0
initial_layer_line_width_factor = 125
jerk_print = 10
material_flow_layer_0 = 90
max_flow_acceleration = 1
minimum_support_area = 4
prime_tower_flow = 90
prime_tower_min_volume = 15
retraction_min_travel = 5.0
retraction_prime_speed = 10.0
skin_material_flow = =material_flow * 0.93
speed_print = 40
speed_print = 30
support_angle = 45
support_infill_rate = 20
support_infill_sparse_thickness = =min(layer_height * 2, machine_nozzle_size * 3 / 4) if layer_height <= 0.15 / 0.4 * machine_nozzle_size else layer_height
support_interface_offset = 1
support_offset = 3
support_xy_distance = 2
support_z_distance = 0
switch_extruder_prime_speed = 10.0

16 changes: 14 additions & 2 deletions resources/quality/ultimaker_factor4/um_f4_bb0.8_pva_0.2mm.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,32 @@ variant = BB 0.8
weight = -2

[values]
acceleration_print = 1000.0
acceleration_support_bottom = 100
acceleration_support_interface = 1500
acceleration_support_interface = 1000
brim_replaces_support = False
build_volume_temperature = =40 if extruders_enabled_count > 1 else 35
default_material_bed_temperature = =0 if extruders_enabled_count > 1 else 60
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
initial_layer_line_width_factor = 150
gradual_support_infill_steps = 0
initial_layer_line_width_factor = 125
jerk_print = 10
material_flow_layer_0 = 90
max_flow_acceleration = 1
minimum_support_area = 4
prime_tower_flow = 90
prime_tower_min_volume = 15
retraction_min_travel = 5.0
retraction_prime_speed = 10.0
skin_material_flow = =material_flow * 0.93
speed_print = 30
support_angle = 45
support_infill_rate = 20
support_infill_sparse_thickness = =min(layer_height * 2, machine_nozzle_size * 3 / 4) if layer_height <= 0.15 / 0.4 * machine_nozzle_size else layer_height
support_interface_offset = 1
support_offset = 3
support_xy_distance = 2
support_z_distance = 0
switch_extruder_prime_speed = 10.0

16 changes: 14 additions & 2 deletions resources/quality/ultimaker_factor4/um_f4_bb0.8_pva_0.3mm.inst.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,32 @@ variant = BB 0.8
weight = -3

[values]
acceleration_print = 1000.0
acceleration_support_bottom = 100
acceleration_support_interface = 1500
acceleration_support_interface = 1000
brim_replaces_support = False
build_volume_temperature = =40 if extruders_enabled_count > 1 else 35
default_material_bed_temperature = =0 if extruders_enabled_count > 1 else 60
gradual_flow_discretisation_step_size = 0.1
gradual_flow_enabled = True
initial_layer_line_width_factor = 150
gradual_support_infill_steps = 0
initial_layer_line_width_factor = 125
jerk_print = 10
material_flow_layer_0 = 90
max_flow_acceleration = 1
minimum_support_area = 4
prime_tower_flow = 90
prime_tower_min_volume = 15
retraction_min_travel = 5.0
retraction_prime_speed = 10.0
skin_material_flow = =material_flow * 0.93
speed_print = 30
support_angle = 45
support_infill_rate = 20
support_infill_sparse_thickness = =min(layer_height * 2, machine_nozzle_size * 3 / 4) if layer_height <= 0.15 / 0.4 * machine_nozzle_size else layer_height
support_interface_offset = 1
support_offset = 3
support_xy_distance = 2
support_z_distance = 0
switch_extruder_prime_speed = 10.0

Loading

0 comments on commit 5f9802a

Please sign in to comment.