mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-12 03:49:00 +08:00
Fix duration in makerbot metadata
CURA-10561
This commit is contained in:
parent
1425dd01d5
commit
603d694512
@ -170,8 +170,9 @@ class MakerbotWriter(MeshWriter):
|
||||
meta["build_plane_temperature"] = material_bed_temperature
|
||||
|
||||
print_information = application.getPrintInformation()
|
||||
meta["commanded_duration_s"] = print_information.currentPrintTime.seconds
|
||||
meta["duration_s"] = print_information.currentPrintTime.seconds
|
||||
|
||||
meta["commanded_duration_s"] = int(print_information.currentPrintTime)
|
||||
meta["duration_s"] = int(print_information.currentPrintTime)
|
||||
|
||||
material_lengths = list(map(meter_to_millimeter, print_information.materialLengths))
|
||||
meta["extrusion_distance_mm"] = material_lengths[0]
|
||||
@ -202,7 +203,7 @@ class MakerbotWriter(MeshWriter):
|
||||
|
||||
meta["preferences"] = dict()
|
||||
for node in nodes:
|
||||
bound = node.getBoundingBox()
|
||||
bounds = node.getBoundingBox()
|
||||
meta["preferences"][str(node.getName())] = {
|
||||
"machineBounds": [bounds.right, bounds.back, bounds.left, bounds.front] if bounds is not None else None,
|
||||
"printMode": CuraApplication.getInstance().getIntentManager().currentIntentCategory,
|
||||
|
Loading…
x
Reference in New Issue
Block a user