mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-06 14:37:29 -06:00
Legacy profile reader no longer creates profiles for multi-extrusion machines
CURA-2421
This commit is contained in:
parent
f4cfe75ab1
commit
3c0971c375
1 changed files with 5 additions and 0 deletions
|
@ -66,6 +66,11 @@ class LegacyProfileReader(ProfileReader):
|
|||
def read(self, file_name):
|
||||
if file_name.split(".")[-1] != "ini":
|
||||
return None
|
||||
|
||||
multi_extrusion = Application.getInstance().getGlobalContainerStack().getProperty("machine_extruder_count","value") > 1
|
||||
if multi_extrusion:
|
||||
Logger.log("e", "Unable to create legacy profile %s. Multi extrusion is not supported", file_name)
|
||||
return None
|
||||
Logger.log("i", "Importing legacy profile from file " + file_name + ".")
|
||||
profile = InstanceContainer("Imported Legacy Profile") #Create an empty profile.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue