mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-10 04:59:00 +08:00
Also return a global profile
Since we always have an extruder now, also for single-extrusion printers, we need to return both a global profile and an extruder profile. Contributes to issue CURA-4713.
This commit is contained in:
parent
569715492c
commit
039c85677a
@ -162,4 +162,8 @@ class LegacyProfileReader(ProfileReader):
|
||||
data = stream.getvalue()
|
||||
profile.deserialize(data)
|
||||
|
||||
return profile
|
||||
global_container_id = container_registry.uniqueName("Global Imported Legacy Profile")
|
||||
global_profile = profile.duplicate(new_id = global_container_id, new_name = "Imported Legacy Profile") #Needs to have the same name as the extruder profile.
|
||||
global_profile.setDirty(True)
|
||||
|
||||
return [global_profile, profile]
|
||||
|
Loading…
x
Reference in New Issue
Block a user