Browse Source

Use definition name rather then display name of the machine

CURA-10561
c.lamboo 1 year ago
parent
commit
20719ea5b5
1 changed files with 1 additions and 1 deletions
  1. 1 1
      plugins/MakerbotWriter/MakerbotWriter.py

+ 1 - 1
plugins/MakerbotWriter/MakerbotWriter.py

@@ -169,7 +169,7 @@ class MakerbotWriter(MeshWriter):
 
         meta = dict()
 
-        meta["bot_type"] = MakerbotWriter._PRINT_NAME_MAP.get((name := global_stack.name), name)
+        meta["bot_type"] = MakerbotWriter._PRINT_NAME_MAP.get((name := global_stack.definition.name), name)
 
         bounds: Optional[AxisAlignedBox] = None
         for node in nodes: