Minor fix to view-toolpaths.pl

This commit is contained in:
Alessandro Ranellucci 2014-12-16 18:13:31 +01:00
parent fcfb3b98bc
commit a200498eef

View File

@ -85,13 +85,12 @@ sub OnInit {
$canvas = Slic3r::GUI::PreviewCanvas->new($panel);
$canvas->print($print);
#$canvas->set_bounding_box($print->bounding_box);
$canvas->set_bed_shape($print->config->bed_shape);
$canvas->set_bounding_box($print->objects->[0]->model_object->bounding_box);
foreach my $object (@{$print->objects}) {
$canvas->load_object($object->model_object);
}
$canvas->zoom_to_volumes;
} else {
$canvas = Slic3r::GUI::Plater::2DToolpaths->new($panel, $print);
}