mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Don't upgrade during pre-read
This doesn't seem to be needed and it breaks when profiles have been renamed. CURA-10406
This commit is contained in:
parent
e099304fce
commit
6a9f1f519d
1 changed files with 4 additions and 5 deletions
|
@ -71,7 +71,7 @@ class QualityChangesInfo:
|
||||||
def __init__(self) -> None:
|
def __init__(self) -> None:
|
||||||
self.name = None
|
self.name = None
|
||||||
self.global_info = None
|
self.global_info = None
|
||||||
self.extruder_info_dict = {} # type: Dict[str, ContainerInfo]
|
self.extruder_info_dict = {} # type: Dict[str, ContainerInfo]
|
||||||
|
|
||||||
|
|
||||||
class MachineInfo:
|
class MachineInfo:
|
||||||
|
@ -461,10 +461,9 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
|
|
||||||
materials_in_extruders_dict = {} # Which material is in which extruder
|
materials_in_extruders_dict = {} # Which material is in which extruder
|
||||||
|
|
||||||
# if the global stack is found, we check if there are conflicts in the extruder stacks
|
# If the global stack is found, we check if there are conflicts in the extruder stacks
|
||||||
for extruder_stack_file in extruder_stack_files:
|
for extruder_stack_file in extruder_stack_files:
|
||||||
serialized = archive.open(extruder_stack_file).read().decode("utf-8")
|
serialized = archive.open(extruder_stack_file).read().decode("utf-8")
|
||||||
serialized = ExtruderStack._updateSerialized(serialized, extruder_stack_file)
|
|
||||||
parser = ConfigParser(interpolation = None)
|
parser = ConfigParser(interpolation = None)
|
||||||
parser.read_string(serialized)
|
parser.read_string(serialized)
|
||||||
|
|
||||||
|
@ -506,10 +505,10 @@ class ThreeMFWorkspaceReader(WorkspaceReader):
|
||||||
continue
|
continue
|
||||||
|
|
||||||
existing_extruder_stack = global_stack.extruderList[int(position)]
|
existing_extruder_stack = global_stack.extruderList[int(position)]
|
||||||
# check if there are any changes at all in any of the container stacks.
|
# Check if there are any changes at all in any of the container stacks.
|
||||||
id_list = self._getContainerIdListFromSerialized(serialized)
|
id_list = self._getContainerIdListFromSerialized(serialized)
|
||||||
for index, container_id in enumerate(id_list):
|
for index, container_id in enumerate(id_list):
|
||||||
# take into account the old empty container IDs
|
# Take into account the old empty container IDs
|
||||||
container_id = self._old_empty_profile_id_dict.get(container_id, container_id)
|
container_id = self._old_empty_profile_id_dict.get(container_id, container_id)
|
||||||
if existing_extruder_stack.getContainer(index).getId() != container_id:
|
if existing_extruder_stack.getContainer(index).getId() != container_id:
|
||||||
machine_conflict = True
|
machine_conflict = True
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue