Skip to content

Commit

Permalink
Merge branch '5.6' of github.com:Ultimaker/Cura into 5.6
Browse files Browse the repository at this point in the history
  • Loading branch information
nallath committed Nov 7, 2023
2 parents f3760fc + cba4151 commit 0c78cdb
Show file tree
Hide file tree
Showing 35 changed files with 92 additions and 56 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/installers.yml
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ jobs:
with open("release-notes.md", "w") as f:
f.write(release_notes.render(
timestamp="${{ steps.filename.outputs.NIGHTLY_TIME }}",
branch="" if ${{ needs.default-values.outputs.release_tag == 'nightly' }} else current_nightly_beta,
branch="" if "${{ needs.default-values.outputs.release_tag == 'nightly' }}" == 'true' else current_nightly_beta,
branch_specific="" if os.getenv("GITHUB_REF") == "refs/heads/main" else f"?branch={current_nightly_beta}",
))
Expand Down
4 changes: 1 addition & 3 deletions CuraVersion.py.jinja
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
# Copyright (c) 2023 UltiMaker
# Cura is released under the terms of the LGPLv3 or higher.

from pkg_resources import working_set

CuraAppName = "{{ cura_app_name }}"
CuraAppDisplayName = "{{ cura_app_display_name }}"
CuraVersion = "{{ cura_version }}"
Expand All @@ -16,4 +14,4 @@ CuraDigitalFactoryURL = "{{ cura_digital_factory_url }}"
CuraLatestURL = "{{ cura_latest_url }}"

ConanInstalls = {{ conan_installs }}
PythonInstalls = {package.key: {'version': package.version} for package in working_set}
PythonInstalls = {{ python_installs }}
18 changes: 18 additions & 0 deletions conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,23 @@ def _conan_installs(self):
}
return conan_installs

def _python_installs(self):
python_installs = {}

# list of python installs
python_ins_cmd = f"python -c \"import pkg_resources; print(';'.join([(s.key+','+ s.version) for s in pkg_resources.working_set]))\""
from six import StringIO
buffer = StringIO()
self.run(python_ins_cmd, run_environment= True, env = "conanrun", output=buffer)

packages = str(buffer.getvalue()).split("-----------------\n")
packages = packages[1].strip('\r\n').split(";")
for package in packages:
name, version = package.split(",")
python_installs[name] = {"version": version}

return python_installs

def _generate_cura_version(self, location):
with open(os.path.join(self.recipe_folder, "CuraVersion.py.jinja"), "r") as f:
cura_version_py = Template(f.read())
Expand All @@ -178,6 +195,7 @@ def _generate_cura_version(self, location):
cura_digital_factory_url = self.conan_data["urls"][self._urls]["digital_factory_url"],
cura_latest_url=self.conan_data["urls"][self._urls]["cura_latest_url"],
conan_installs=self._conan_installs(),
python_installs=self._python_installs(),
))

def _generate_pyinstaller_spec(self, location, entrypoint_location, icon_path, entitlements_file):
Expand Down
2 changes: 1 addition & 1 deletion plugins/3MFReader/ThreeMFWorkspaceReader.py
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ def preRead(self, file_name, show_dialog=True, *args, **kwargs):
self._dialog.setNumVisibleSettings(num_visible_settings)
self._dialog.setQualityName(quality_name)
self._dialog.setQualityType(quality_type)
self._dialog.setIntentName(intent_name)
self._dialog.setIntentName(intent_category)
self._dialog.setNumSettingsOverriddenByQualityChanges(num_settings_overridden_by_quality_changes)
self._dialog.setNumUserSettings(num_user_settings)
self._dialog.setActiveMode(active_mode)
Expand Down
10 changes: 9 additions & 1 deletion plugins/3MFReader/WorkspaceDialog.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from typing import List, Optional, Dict, cast

from cura.Machines.Models.MachineListModel import MachineListModel
from cura.Machines.Models.IntentTranslations import intent_translations
from cura.Settings.GlobalStack import GlobalStack
from UM.Application import Application
from UM.FlameProfiler import pyqtSlot
Expand Down Expand Up @@ -223,7 +224,14 @@ def intentName(self) -> str:

def setIntentName(self, intent_name: str) -> None:
if self._intent_name != intent_name:
self._intent_name = intent_name
try:
self._intent_name = intent_translations[intent_name]["name"]
except:
self._intent_name = intent_name.title()
self.intentNameChanged.emit()

if not self._intent_name:
self._intent_name = intent_translations["default"]["name"]
self.intentNameChanged.emit()

@pyqtProperty(str, notify=activeModeChanged)
Expand Down
6 changes: 3 additions & 3 deletions plugins/MakerbotWriter/MakerbotWriter.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@ def __init__(self) -> None:
]
_META_VERSION = "3.0.0"
_PRINT_NAME_MAP = {
"Makerbot Method": "fire_e",
"Makerbot Method X": "lava_f",
"Makerbot Method XL": "magma_10",
"UltiMaker Method": "fire_e",
"UltiMaker Method X": "lava_f",
"UltiMaker Method XL": "magma_10",
}
_EXTRUDER_NAME_MAP = {
"1XA": "mk14_hot",
Expand Down
9 changes: 7 additions & 2 deletions plugins/XmlMaterialProfile/product_to_id.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,10 @@
"DUAL600": "strateo3d",
"IDEX420": "strateo3d_IDEX420",
"IDEX420 Duplicate": "strateo3d_IDEX420_duplicate",
"IDEX420 Mirror": "strateo3d_IDEX420_mirror"
}
"IDEX420 Mirror": "strateo3d_IDEX420_mirror",
"UltiMaker Method": "ultimaker_method",
"UltiMaker Method X": "ultimaker_methodx",
"UltiMaker Method XL": "ultimaker_methodxl",
"UltiMaker Sketch": "ultimaker_sketch",
"UltiMaker Sketch Large": "ultimaker_sketch_large"
}
5 changes: 2 additions & 3 deletions resources/definitions/fdmprinter.def.json
Original file line number Diff line number Diff line change
Expand Up @@ -1396,7 +1396,6 @@
{
"label": "Z Seam Relative",
"description": "When enabled, the z seam coordinates are relative to each part's centre. When disabled, the coordinates define an absolute position on the build plate.",
"unit": "mm",
"type": "bool",
"default_value": false,
"enabled": "z_seam_type == 'back'",
Expand Down Expand Up @@ -7839,7 +7838,7 @@
"type": "float",
"minimum_value": "5",
"minimum_value_warning": "50",
"maximum_value_warning": "150",
"maximum_value_warning": "250",
"enabled": "bridge_settings_enabled",
"settable_per_mesh": true
},
Expand All @@ -7866,7 +7865,7 @@
"type": "float",
"minimum_value": "5",
"minimum_value_warning": "50",
"maximum_value_warning": "150",
"maximum_value_warning": "250",
"enabled": "bridge_settings_enabled",
"settable_per_mesh": true
},
Expand Down
8 changes: 4 additions & 4 deletions resources/definitions/ultimaker_method_base.def.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": 2,
"name": "Makerbot Method Base Profile",
"name": "UltiMaker Method Base Profile",
"inherits": "ultimaker",
"metadata":
{
"visible": false,
"author": "Ultimaker",
"author": "UltiMaker",
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-makerbot",
"platform": "ultimaker_method_platform.stl",
Expand Down Expand Up @@ -328,7 +328,7 @@
"machine_heated_build_volume": { "default_value": true },
"machine_height": { "default_value": 196 },
"machine_min_cool_heat_time_window": { "value": 15 },
"machine_name": { "default_value": "Makerbot Method" },
"machine_name": { "default_value": "UltiMaker Method" },
"machine_nozzle_cool_down_speed": { "value": 0.8 },
"machine_nozzle_heat_up_speed": { "value": 3.5 },
"machine_start_gcode": { "default_value": "" },
Expand All @@ -348,7 +348,7 @@
"prime_blob_enable": { "enabled": false },
"prime_tower_base_curve_magnitude": { "value": 2 },
"prime_tower_base_height": { "value": 6 },
"prime_tower_base_size": { "value": 6 },
"prime_tower_base_size": { "value": 10 },
"prime_tower_enable": { "value": false },
"prime_tower_flow": { "value": "material_flow" },
"prime_tower_line_width": { "value": 1 },
Expand Down
6 changes: 3 additions & 3 deletions resources/definitions/ultimaker_methodx.def.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": 2,
"name": "Makerbot Method X",
"name": "UltiMaker Method X",
"inherits": "ultimaker_method_base",
"metadata":
{
"visible": true,
"author": "Ultimaker",
"author": "UltiMaker",
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-makerbot",
"platform": "ultimaker_method_platform.stl",
Expand Down Expand Up @@ -83,6 +83,6 @@
},
"overrides":
{
"machine_name": { "default_value": "Makerbot Method X" }
"machine_name": { "default_value": "UltiMaker Method X" }
}
}
6 changes: 3 additions & 3 deletions resources/definitions/ultimaker_methodxl.def.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": 2,
"name": "Makerbot Method XL",
"name": "UltiMaker Method XL",
"inherits": "ultimaker_methodx",
"metadata":
{
"visible": true,
"author": "Ultimaker",
"author": "UltiMaker",
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-makerbot",
"platform": "ultimaker_method_xl_platform.stl",
Expand Down Expand Up @@ -35,7 +35,7 @@
"machine_depth": { "default_value": 305 },
"machine_heated_bed": { "default_value": true },
"machine_height": { "default_value": 317 },
"machine_name": { "default_value": "Makerbot Method XL" },
"machine_name": { "default_value": "UltiMaker Method XL" },
"machine_width": { "default_value": 305 },
"material_shrinkage_percentage_z": { "resolve": "sum(extruderValues(\"material_shrinkage_percentage_z\")) / len(extruderValues(\"material_shrinkage_percentage_z\"))" },
"speed_travel": { "value": 500 }
Expand Down
4 changes: 2 additions & 2 deletions resources/definitions/ultimaker_s3.def.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": 2,
"name": "Ultimaker S3",
"name": "UltiMaker S3",
"inherits": "ultimaker",
"metadata":
{
"visible": true,
"author": "Ultimaker",
"author": "UltiMaker",
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-ufp;text/x-gcode",
"platform": "ultimaker_s3_platform.obj",
Expand Down
4 changes: 2 additions & 2 deletions resources/definitions/ultimaker_s5.def.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": 2,
"name": "Ultimaker S5",
"name": "UltiMaker S5",
"inherits": "ultimaker",
"metadata":
{
"visible": true,
"author": "Ultimaker",
"author": "UltiMaker",
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-ufp;text/x-gcode",
"platform": "ultimaker_s5_platform.obj",
Expand Down
4 changes: 2 additions & 2 deletions resources/definitions/ultimaker_s7.def.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"version": 2,
"name": "Ultimaker S7",
"name": "UltiMaker S7",
"inherits": "ultimaker_s5",
"metadata":
{
"visible": true,
"author": "Ultimaker",
"author": "UltiMaker",
"manufacturer": "Ultimaker B.V.",
"file_formats": "application/x-ufp;text/x-gcode",
"platform": "ultimaker_s7_platform.obj",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ material = ultimaker_abscf_175
quality_type = draft
setting_version = 22
type = intent
variant = Lab
variant = LABS

[values]
infill_sparse_density = 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ material = ultimaker_absr_175
quality_type = draft
setting_version = 22
type = intent
variant = Lab
variant = LABS

[values]
infill_sparse_density = 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ material = ultimaker_abscf_175
quality_type = draft
setting_version = 22
type = intent
variant = Lab
variant = LABS

[values]
infill_sparse_density = 100
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ material = ultimaker_absr_175
quality_type = draft
setting_version = 22
type = intent
variant = Lab
variant = LABS

[values]
infill_sparse_density = 100
Expand Down
5 changes: 4 additions & 1 deletion resources/qml/Dialogs/AboutDialog.qml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ UM.Dialog
width: Math.floor(base.width * 0.85)
height: Math.floor(width * UM.Theme.getSize("logo").height / UM.Theme.getSize("logo").width)
source: UM.Theme.getImage("logo")
sourceSize.width: width
sourceSize.height: height
fillMode: Image.PreserveAspectFit

anchors.centerIn: parent
Expand Down Expand Up @@ -107,9 +109,10 @@ UM.Dialog

Flickable
{
id: scroll
anchors.fill: parent
ScrollBar.vertical: UM.ScrollBar {
visible: contentHeight > height
visible: scroll.contentHeight > height
}
contentHeight: content.height
clip: true
Expand Down
1 change: 1 addition & 0 deletions resources/qml/Menus/MaterialMenu.qml
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ Cura.Menu
{
id: genericMenu
title: catalog.i18nc("@label:category menu label", "Generic")
enabled: genericMaterialsModel.items.length > 0

Instantiator
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ weight = -2

[values]
cool_fan_enabled = False
raft_air_gap = 0.3
raft_airgap = 0.3
speed_prime_tower = 30.0
speed_print = 120.0
speed_roofing = 55
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ weight = -2

[values]
cool_fan_enabled = False
raft_air_gap = 0.3
raft_airgap = 0.3
speed_prime_tower = 30.0
speed_print = 120.0
speed_roofing = 55
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,8 @@ weight = -2

[values]
brim_replaces_support = False
cool_fan_enabled = False
cool_min_temperature = =material_print_temperature
raft_airgap = 0.0
retract_at_layer_change = True
speed_prime_tower = 25.0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ material = ultimaker_abscf_175
quality_type = draft
setting_version = 22
type = quality
variant = Lab
variant = LABS
weight = -2

[values]
cool_fan_enabled = False
raft_air_gap = 0.3
raft_airgap = 0.3
speed_prime_tower = 30.0
speed_print = 120.0
speed_roofing = 55
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ material = ultimaker_absr_175
quality_type = draft
setting_version = 22
type = quality
variant = Lab
variant = LABS
weight = -2

[values]
cool_fan_enabled = False
raft_air_gap = 0.3
raft_airgap = 0.3
speed_prime_tower = 30.0
speed_print = 120.0
speed_roofing = 55
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ weight = -2
build_volume_temperature = 85
cool_fan_enabled = False
default_material_bed_temperature = 95
raft_air_gap = 0.3
raft_airgap = 0.3
speed_prime_tower = 30.0
speed_print = 120.0
speed_roofing = 55
Expand Down
Loading

0 comments on commit 0c78cdb

Please sign in to comment.