FIX: excpetion when plate center is negative
jira:[NEW] Signed-off-by: xun.zhang <xun.zhang@bambulab.com> Change-Id: Ia1066bd7457181711d0a59b9544d65ed502410e0
This commit is contained in:
parent
0af408128a
commit
873f4bc90f
|
@ -1947,7 +1947,7 @@ void GCode::_do_export(Print& print, GCodeOutputStream &file, ThumbnailsGenerato
|
|||
bbox_wo_wt.merge(unscaled(objPtr->get_first_layer_bbox(data.area, data.layer_height, data.name)));
|
||||
}
|
||||
auto center = bbox_wo_wt.center();
|
||||
m_placeholder_parser.set("first_layer_center_no_wipe_tower", new ConfigOptionFloats(center.x(),center.y()));
|
||||
m_placeholder_parser.set("first_layer_center_no_wipe_tower", new ConfigOptionFloats{ {center.x(),center.y()}});
|
||||
}
|
||||
|
||||
int max_chamber_temp = 0;
|
||||
|
|
Loading…
Reference in New Issue