Skip to content

Commit

Permalink
Add all changed materials to version upgrade regex
Browse files Browse the repository at this point in the history
CURA-10953
  • Loading branch information
nallath committed Sep 8, 2023
1 parent 0141b75 commit bcd9f9c
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

class VersionUpgrade54to55(VersionUpgrade):
profile_regex = re.compile(
r"um\_(?P<machine>s(3|5|7))_(?P<core_type>aa|cc|bb)(?P<nozzle_size>0\.(6|4|8))_(?P<material>pla|petg|abs)_(?P<layer_height>0\.\d{1,2}mm)")
r"um\_(?P<machine>s(3|5|7))_(?P<core_type>aa|cc|bb)(?P<nozzle_size>0\.(6|4|8))_(?P<material>pla|petg|abs|cpe|cpe_plus|nylon|pc|petcf|tough_pla|tpu)_(?P<layer_height>0\.\d{1,2}mm)")

@staticmethod
def _isUpgradedUltimakerDefinitionId(definition_id: str) -> bool:
Expand Down Expand Up @@ -63,7 +63,6 @@ def upgradeStack(serialized: str, filename: str) -> Tuple[List[str], List[str]]:
intent_id = VersionUpgrade54to55.profile_regex.sub(
"um_\g<machine>_\g<core_type>\g<nozzle_size>_um-\g<material>_\g<layer_height>", intent_id)


parser["containers"]["3"] = quality_id
parser["containers"]["2"] = intent_id

Expand Down

0 comments on commit bcd9f9c

Please sign in to comment.