mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 22:47:29 -06:00
Add all changed materials to version upgrade regex
CURA-10953
This commit is contained in:
parent
0141b750f5
commit
bcd9f9cbf9
1 changed files with 1 additions and 2 deletions
|
@ -11,7 +11,7 @@ import re
|
||||||
|
|
||||||
class VersionUpgrade54to55(VersionUpgrade):
|
class VersionUpgrade54to55(VersionUpgrade):
|
||||||
profile_regex = re.compile(
|
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
|
@staticmethod
|
||||||
def _isUpgradedUltimakerDefinitionId(definition_id: str) -> bool:
|
def _isUpgradedUltimakerDefinitionId(definition_id: str) -> bool:
|
||||||
|
@ -63,7 +63,6 @@ class VersionUpgrade54to55(VersionUpgrade):
|
||||||
intent_id = VersionUpgrade54to55.profile_regex.sub(
|
intent_id = VersionUpgrade54to55.profile_regex.sub(
|
||||||
"um_\g<machine>_\g<core_type>\g<nozzle_size>_um-\g<material>_\g<layer_height>", intent_id)
|
"um_\g<machine>_\g<core_type>\g<nozzle_size>_um-\g<material>_\g<layer_height>", intent_id)
|
||||||
|
|
||||||
|
|
||||||
parser["containers"]["3"] = quality_id
|
parser["containers"]["3"] = quality_id
|
||||||
parser["containers"]["2"] = intent_id
|
parser["containers"]["2"] = intent_id
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue