mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-11 13:09:06 +08:00
Filter \n from transformation string
CURA-3858
This commit is contained in:
parent
1682348629
commit
d69736ac34
@ -113,7 +113,7 @@ class SliceInfo(Extension):
|
|||||||
"maximum": {"x": bounding_box.maximum.x,
|
"maximum": {"x": bounding_box.maximum.x,
|
||||||
"y": bounding_box.maximum.y,
|
"y": bounding_box.maximum.y,
|
||||||
"z": bounding_box.maximum.z}}
|
"z": bounding_box.maximum.z}}
|
||||||
model["transformation"] = {"data": str(node.getWorldTransformation().getData())}
|
model["transformation"] = {"data": str(node.getWorldTransformation().getData()).replace("\n", "")}
|
||||||
extruder_position = node.callDecoration("getActiveExtruderPosition")
|
extruder_position = node.callDecoration("getActiveExtruderPosition")
|
||||||
model["extruder"] = 0 if extruder_position is None else extruder_position
|
model["extruder"] = 0 if extruder_position is None else extruder_position
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user