mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-01 14:12:01 +08:00
Auto align z preference (#4218)
* Add preference to disable auto alignment to the z plane * Make it clear auto-center preference only effects x,y
This commit is contained in:
parent
02b5014b57
commit
b5276e6e25
@ -84,6 +84,7 @@ our $Settings = {
|
||||
_ => {
|
||||
version_check => 1,
|
||||
autocenter => 1,
|
||||
autoalignz => 1,
|
||||
invert_zoom => 0,
|
||||
background_processing => 0,
|
||||
threads => $Slic3r::Config::Options->{threads}{default},
|
||||
|
@ -1265,12 +1265,16 @@ sub load_model_objects {
|
||||
# if user turned autocentering off, automatic arranging would disappoint them
|
||||
$need_arrange = 0;
|
||||
|
||||
$o->align_to_ground; # aligns object to Z = 0
|
||||
if ($Slic3r::GUI::Settings->{_}{autoalignz}) {
|
||||
$o->align_to_ground; # aligns object to Z = 0
|
||||
}
|
||||
$o->add_instance();
|
||||
}
|
||||
} else {
|
||||
# if object has defined positions we still need to ensure it's aligned to Z = 0
|
||||
$o->align_to_ground;
|
||||
if ($Slic3r::GUI::Settings->{_}{autoalignz}) {
|
||||
# if object has defined positions we still need to ensure it's aligned to Z = 0
|
||||
$o->align_to_ground;
|
||||
}
|
||||
}
|
||||
|
||||
{
|
||||
|
@ -38,10 +38,17 @@ sub new {
|
||||
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
||||
opt_id => 'autocenter',
|
||||
type => 'bool',
|
||||
label => 'Auto-center parts',
|
||||
label => 'Auto-center parts (x,y)',
|
||||
tooltip => 'If this is enabled, Slic3r will auto-center objects around the print bed center.',
|
||||
default => $Slic3r::GUI::Settings->{_}{autocenter},
|
||||
));
|
||||
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
||||
opt_id => 'autoalignz',
|
||||
type => 'bool',
|
||||
label => 'Auto-align parts (z=0)',
|
||||
tooltip => 'If this is enabled, Slic3r will auto-align objects z value to be on the print bed at z=0.',
|
||||
default => $Slic3r::GUI::Settings->{_}{autoalignz},
|
||||
));
|
||||
$optgroup->append_single_option_line(Slic3r::GUI::OptionsGroup::Option->new(
|
||||
opt_id => 'invert_zoom',
|
||||
type => 'bool',
|
||||
|
Loading…
x
Reference in New Issue
Block a user