mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-07-07 06:57:28 -06:00
GCodeWriter: Getting always the correct container with the currently used profile.
This commit is contained in:
parent
1fdf835c19
commit
d49ba80117
1 changed files with 2 additions and 2 deletions
|
@ -69,8 +69,8 @@ class GCodeWriter(MeshWriter):
|
|||
prefix_length = len(prefix)
|
||||
|
||||
global_stack = Application.getInstance().getGlobalContainerStack()
|
||||
container_with_settings = global_stack.getContainers()[1]
|
||||
serialized = container_with_settings.serialize()
|
||||
container_with_profile = global_stack.findContainer({"type": "quality"})
|
||||
serialized = container_with_profile.serialize()
|
||||
|
||||
# Escape characters that have a special meaning in g-code comments.
|
||||
pattern = re.compile("|".join(GCodeWriter.escape_characters.keys()))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue