mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-16 06:35:55 +08:00
Legacy profile reader no longer creates profiles for multi-extrusion machines
CURA-2421
This commit is contained in:
parent
f4cfe75ab1
commit
3c0971c375
@ -66,6 +66,11 @@ class LegacyProfileReader(ProfileReader):
|
|||||||
def read(self, file_name):
|
def read(self, file_name):
|
||||||
if file_name.split(".")[-1] != "ini":
|
if file_name.split(".")[-1] != "ini":
|
||||||
return None
|
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 + ".")
|
Logger.log("i", "Importing legacy profile from file " + file_name + ".")
|
||||||
profile = InstanceContainer("Imported Legacy Profile") #Create an empty profile.
|
profile = InstanceContainer("Imported Legacy Profile") #Create an empty profile.
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user