mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-13 21:56:04 +08:00
Merge branch '4.10'
This commit is contained in:
commit
e296b0897b
@ -193,14 +193,13 @@ class Backup:
|
||||
Logger.log("d", "Removing current data in location: %s", target_path)
|
||||
Resources.factoryReset()
|
||||
Logger.log("d", "Extracting backup to location: %s", target_path)
|
||||
try:
|
||||
name_list = archive.namelist()
|
||||
for archive_filename in name_list:
|
||||
name_list = archive.namelist()
|
||||
for archive_filename in name_list:
|
||||
try:
|
||||
archive.extract(archive_filename, target_path)
|
||||
CuraApplication.getInstance().processEvents()
|
||||
except (PermissionError, EnvironmentError):
|
||||
Logger.logException("e", "Unable to extract the backup due to permission or file system errors.")
|
||||
return False
|
||||
except (PermissionError, EnvironmentError):
|
||||
Logger.logException("e", f"Unable to extract the file {archive_filename} from the backup due to permission or file system errors.")
|
||||
CuraApplication.getInstance().processEvents()
|
||||
return True
|
||||
|
||||
def _obfuscate(self) -> Dict[str, str]:
|
||||
|
@ -81,7 +81,8 @@ class DrivePluginExtension(QObject, Extension):
|
||||
self._drive_window.show()
|
||||
|
||||
def _onApplicationShuttingDown(self):
|
||||
self._drive_window.hide()
|
||||
if self._drive_window:
|
||||
self._drive_window.hide()
|
||||
|
||||
def _autoBackup(self) -> None:
|
||||
preferences = CuraApplication.getInstance().getPreferences()
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (c) 2020 Ultimaker B.V.
|
||||
# Copyright (c) 2021 Ultimaker B.V.
|
||||
# Cura is released under the terms of the LGPLv3 or higher.
|
||||
|
||||
from ..Script import Script
|
||||
@ -517,8 +517,13 @@ class PauseAtHeight(Script):
|
||||
|
||||
prepend_gcode += self.putValue(M = extrusion_mode_numeric) + " ; switch back to " + extrusion_mode_string + " E values\n"
|
||||
|
||||
# reset extrude value to pre pause value
|
||||
prepend_gcode += self.putValue(G = 92, E = current_e) + "\n"
|
||||
# reset extrude value to pre pause value
|
||||
prepend_gcode += self.putValue(G = 92, E = current_e) + "\n"
|
||||
|
||||
elif redo_layer:
|
||||
# All other options reset the E value to what it was before the pause because E things were added.
|
||||
# If it's not yet reset, it still needs to be reset if there were any redo layers.
|
||||
prepend_gcode += self.putValue(G = 92, E = current_e) + "\n"
|
||||
|
||||
layer = prepend_gcode + layer
|
||||
|
||||
|
@ -21,4 +21,4 @@ speed_layer_0 = 30
|
||||
speed_print = 30
|
||||
top_bottom_thickness = 0.72
|
||||
wall_thickness = 0.88
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
@ -27,4 +27,4 @@ speed_wall_0 = =math.ceil(speed_print * 30 / 45)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 45)
|
||||
speed_wall_x = =math.ceil(speed_print * 40 / 45)
|
||||
speed_infill = =math.ceil(speed_print * 45 / 45)
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
@ -27,4 +27,4 @@ speed_wall_0 = =math.ceil(speed_print * 30 / 45)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 45)
|
||||
speed_wall_x = =math.ceil(speed_print * 40 / 45)
|
||||
speed_infill = =math.ceil(speed_print * 45 / 45)
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
@ -22,4 +22,4 @@ speed_print = 45
|
||||
speed_wall = =math.ceil(speed_print * 30 / 45)
|
||||
top_bottom_thickness = 0.8
|
||||
wall_thickness = 1.05
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
@ -21,4 +21,4 @@ speed_layer_0 = 30
|
||||
speed_print = 40
|
||||
top_bottom_thickness = 1.2
|
||||
wall_thickness = 1.59
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
@ -21,4 +21,4 @@ speed_layer_0 = 30
|
||||
speed_print = 40
|
||||
top_bottom_thickness = 1.2
|
||||
wall_thickness = 2.1
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
@ -18,5 +18,5 @@ speed_topbottom = =math.ceil(speed_print * 30 / 55)
|
||||
top_bottom_thickness = 0.8
|
||||
wall_thickness = 0.92
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
retraction_combing_max_distance = 40
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_combing = all
|
||||
|
@ -23,5 +23,5 @@ speed_topbottom = =math.ceil(speed_print * 35 / 60)
|
||||
speed_wall = =math.ceil(speed_print * 45 / 60)
|
||||
speed_wall_0 = =math.ceil(speed_wall * 35 / 45)
|
||||
wall_thickness = 1
|
||||
retraction_combing_max_distance = 40
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_combing = all
|
||||
|
@ -23,5 +23,5 @@ speed_topbottom = =math.ceil(speed_print * 30 / 60)
|
||||
speed_wall = =math.ceil(speed_print * 40 / 60)
|
||||
speed_wall_0 = =math.ceil(speed_wall * 30 / 40)
|
||||
speed_infill = =math.ceil(speed_print * 50 / 60)
|
||||
retraction_combing_max_distance = 40
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_combing = all
|
||||
|
@ -23,5 +23,5 @@ speed_layer_0 = =math.ceil(speed_print * 20 / 55)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 55)
|
||||
speed_wall = =math.ceil(speed_print * 30 / 55)
|
||||
speed_infill = =math.ceil(speed_print * 45 / 55)
|
||||
retraction_combing_max_distance = 40
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_combing = all
|
||||
|
@ -20,5 +20,5 @@ prime_tower_enable = True
|
||||
speed_print = 40
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 40)
|
||||
speed_wall = =math.ceil(speed_print * 30 / 40)
|
||||
retraction_combing_max_distance = 40
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_combing = all
|
||||
|
@ -22,5 +22,5 @@ speed_print = 45
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 45)
|
||||
speed_wall = =math.ceil(speed_print * 40 / 45)
|
||||
speed_wall_0 = =math.ceil(speed_wall * 30 / 40)
|
||||
retraction_combing_max_distance = 40
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_combing = all
|
||||
|
@ -21,5 +21,5 @@ prime_tower_enable = True
|
||||
speed_print = 40
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 40)
|
||||
speed_wall = =math.ceil(speed_print * 30 / 40)
|
||||
retraction_combing_max_distance = 40
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_combing = all
|
||||
|
@ -12,7 +12,7 @@ material = generic_petg
|
||||
variant = AA 0.25
|
||||
|
||||
[values]
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_extrusion_window = 0.5
|
||||
speed_infill = =math.ceil(speed_print * 40 / 55)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 55)
|
||||
|
@ -15,7 +15,7 @@ variant = AA 0.4
|
||||
material_print_temperature = =default_material_print_temperature + 5
|
||||
material_initial_print_temperature = =material_print_temperature
|
||||
material_final_print_temperature = =material_print_temperature - 5
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
skin_overlap = 20
|
||||
speed_print = 60
|
||||
speed_layer_0 = =math.ceil(speed_print * 20 / 60)
|
||||
|
@ -16,7 +16,7 @@ cool_min_speed = 7
|
||||
material_print_temperature = =default_material_print_temperature
|
||||
material_initial_print_temperature = =material_print_temperature - 5
|
||||
material_final_print_temperature = =material_print_temperature - 10
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 60
|
||||
speed_layer_0 = =math.ceil(speed_print * 20 / 60)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 60)
|
||||
|
@ -18,7 +18,7 @@ machine_nozzle_heat_up_speed = 1.5
|
||||
material_print_temperature = =default_material_print_temperature - 10
|
||||
material_initial_print_temperature = =material_print_temperature - 10
|
||||
material_final_print_temperature = =material_print_temperature - 15
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 50
|
||||
speed_layer_0 = =math.ceil(speed_print * 20 / 50)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 50)
|
||||
|
@ -17,7 +17,7 @@ machine_nozzle_heat_up_speed = 1.5
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_initial_print_temperature = =material_print_temperature - 10
|
||||
material_final_print_temperature = =material_print_temperature - 15
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 55
|
||||
speed_layer_0 = =math.ceil(speed_print * 20 / 55)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 55)
|
||||
|
@ -17,7 +17,7 @@ line_width = =machine_nozzle_size * 0.875
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_standby_temperature = 100
|
||||
prime_tower_enable = True
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 40
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 40)
|
||||
speed_wall = =math.ceil(speed_print * 30 / 40)
|
||||
|
@ -17,7 +17,7 @@ line_width = =machine_nozzle_size * 0.875
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_standby_temperature = 100
|
||||
prime_tower_enable = True
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 45
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 45)
|
||||
speed_wall = =math.ceil(speed_print * 40 / 45)
|
||||
|
@ -17,7 +17,7 @@ line_width = =machine_nozzle_size * 0.875
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_standby_temperature = 100
|
||||
prime_tower_enable = True
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 40
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 40)
|
||||
speed_wall = =math.ceil(speed_print * 30 / 40)
|
||||
|
@ -12,7 +12,7 @@ material = generic_petg
|
||||
variant = AA 0.25
|
||||
|
||||
[values]
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
retraction_extrusion_window = 0.5
|
||||
speed_infill = =math.ceil(speed_print * 40 / 55)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 55)
|
||||
|
@ -15,7 +15,7 @@ variant = AA 0.4
|
||||
material_print_temperature = =default_material_print_temperature + 5
|
||||
material_initial_print_temperature = =material_print_temperature
|
||||
material_final_print_temperature = =material_print_temperature - 5
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
skin_edge_support_thickness = =0.8 if infill_sparse_density < 30 else 0
|
||||
skin_overlap = 20
|
||||
speed_print = 60
|
||||
|
@ -16,7 +16,7 @@ cool_min_speed = 7
|
||||
material_print_temperature = =default_material_print_temperature
|
||||
material_initial_print_temperature = =material_print_temperature - 5
|
||||
material_final_print_temperature = =material_print_temperature - 10
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 60
|
||||
speed_layer_0 = =math.ceil(speed_print * 20 / 60)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 60)
|
||||
|
@ -18,7 +18,7 @@ machine_nozzle_heat_up_speed = 1.5
|
||||
material_print_temperature = =default_material_print_temperature - 10
|
||||
material_initial_print_temperature = =material_print_temperature - 10
|
||||
material_final_print_temperature = =material_print_temperature - 15
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 50
|
||||
speed_layer_0 = =math.ceil(speed_print * 20 / 50)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 50)
|
||||
|
@ -17,7 +17,7 @@ machine_nozzle_heat_up_speed = 1.5
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_initial_print_temperature = =material_print_temperature - 10
|
||||
material_final_print_temperature = =material_print_temperature - 15
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 55
|
||||
speed_layer_0 = =math.ceil(speed_print * 20 / 55)
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 55)
|
||||
|
@ -17,7 +17,7 @@ line_width = =machine_nozzle_size * 0.875
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_standby_temperature = 100
|
||||
prime_tower_enable = True
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 40
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 40)
|
||||
speed_wall = =math.ceil(speed_print * 30 / 40)
|
||||
|
@ -17,7 +17,7 @@ line_width = =machine_nozzle_size * 0.875
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_standby_temperature = 100
|
||||
prime_tower_enable = True
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 45
|
||||
speed_topbottom = =math.ceil(speed_print * 30 / 45)
|
||||
speed_wall = =math.ceil(speed_print * 40 / 45)
|
||||
|
@ -17,7 +17,7 @@ line_width = =machine_nozzle_size * 0.875
|
||||
material_print_temperature = =default_material_print_temperature - 5
|
||||
material_standby_temperature = 100
|
||||
prime_tower_enable = True
|
||||
retraction_combing_max_distance = 50
|
||||
retraction_combing_max_distance = 8
|
||||
speed_print = 40
|
||||
speed_topbottom = =math.ceil(speed_print * 25 / 40)
|
||||
speed_wall = =math.ceil(speed_print * 30 / 40)
|
||||
|
Loading…
x
Reference in New Issue
Block a user