Don't copy transformations if it's not needed

CURA=7106
This commit is contained in:
Jaime van Kessel 2020-06-23 16:24:34 +02:00
parent ac0c0d0698
commit b0ed47daf1
No known key found for this signature in database
GPG key ID: 3710727397403C91
5 changed files with 7 additions and 7 deletions

View file

@ -199,7 +199,7 @@ class SliceInfo(QObject, Extension):
"maximum": {"x": bounding_box.maximum.x,
"y": bounding_box.maximum.y,
"z": bounding_box.maximum.z}}
model["transformation"] = {"data": str(node.getWorldTransformation().getData()).replace("\n", "")}
model["transformation"] = {"data": str(node.getWorldTransformation(copy = False).getData()).replace("\n", "")}
extruder_position = node.callDecoration("getActiveExtruderPosition")
model["extruder"] = 0 if extruder_position is None else int(extruder_position)