Honor print bed center in Quick Slice. #2440
This commit is contained in:
parent
4fc955a0fd
commit
583b009d1b
1 changed files with 7 additions and 0 deletions
|
@ -319,7 +319,14 @@ sub quick_slice {
|
||||||
$Slic3r::GUI::Settings->{recent}{skein_directory} = dirname($input_file);
|
$Slic3r::GUI::Settings->{recent}{skein_directory} = dirname($input_file);
|
||||||
wxTheApp->save_settings;
|
wxTheApp->save_settings;
|
||||||
|
|
||||||
|
my $print_center;
|
||||||
|
{
|
||||||
|
my $bed_shape = Slic3r::Polygon->new_scale(@{$config->bed_shape});
|
||||||
|
$print_center = Slic3r::Pointf->new_unscale(@{$bed_shape->bounding_box->center});
|
||||||
|
}
|
||||||
|
|
||||||
my $sprint = Slic3r::Print::Simple->new(
|
my $sprint = Slic3r::Print::Simple->new(
|
||||||
|
print_center => $print_center,
|
||||||
status_cb => sub {
|
status_cb => sub {
|
||||||
my ($percent, $message) = @_;
|
my ($percent, $message) = @_;
|
||||||
return if &Wx::wxVERSION_STRING !~ / 2\.(8\.|9\.[2-9])/;
|
return if &Wx::wxVERSION_STRING !~ / 2\.(8\.|9\.[2-9])/;
|
||||||
|
|
Loading…
Add table
Reference in a new issue