Include all Print options in the overridable options list. #3770

This commit is contained in:
Alessandro Ranellucci 2017-03-25 19:18:41 +01:00
parent a267af2e1a
commit 93c298f7ac
2 changed files with 4 additions and 2 deletions

View File

@ -452,9 +452,10 @@ sub build {
my $overridable_widget = sub {
my ($parent) = @_;
my $Options = $Slic3r::Config::Options;
my %options = (
map { $_ => sprintf('%s > %s', $Slic3r::Config::Options->{$_}{category}, $Slic3r::Config::Options->{$_}{full_label} // $Slic3r::Config::Options->{$_}{label}) }
map @{$_->get_keys}, Slic3r::Config::PrintObject->new, Slic3r::Config::PrintRegion->new
map { $_ => sprintf('%s > %s', $Options->{$_}{category}, $Options->{$_}{full_label} // $Options->{$_}{label}) }
grep { exists $Options->{$_} && $Options->{$_}{category} } $self->options
);
my @opt_keys = sort { $options{$a} cmp $options{$b} } keys %options;
$self->{overridable_opt_keys} = [ @opt_keys ];

View File

@ -144,6 +144,7 @@ PrintConfigDef::PrintConfigDef()
def = this->add("complete_objects", coBool);
def->label = "Complete individual objects";
def->category = "Advanced";
def->tooltip = "When printing multiple objects or copies, this feature will complete each object before moving onto next one (and starting it from its bottom layer). This feature is useful to avoid the risk of ruined prints. Slic3r should warn and prevent you from extruder collisions, but beware.";
def->cli = "complete-objects!";
def->default_value = new ConfigOptionBool(false);