mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-05 13:04:03 -06:00
More work for removing references to $Slic3r::Config
This commit is contained in:
parent
1157a7f859
commit
2956c1a2e5
4 changed files with 14 additions and 12 deletions
|
@ -39,9 +39,6 @@ sub BUILD {
|
|||
sub init_config {
|
||||
my $self = shift;
|
||||
|
||||
# store config in a handy place
|
||||
$Slic3r::Config = $self->config;
|
||||
|
||||
# legacy with existing config files
|
||||
$self->config->set('first_layer_height', $self->config->layer_height)
|
||||
if !$self->config->first_layer_height;
|
||||
|
@ -861,7 +858,7 @@ sub write_gcode {
|
|||
}
|
||||
|
||||
my $buffer = Slic3r::GCode::CoolingBuffer->new(
|
||||
config => $Slic3r::Config,
|
||||
config => $self->config,
|
||||
gcodegen => $gcodegen,
|
||||
);
|
||||
|
||||
|
@ -903,7 +900,7 @@ sub write_gcode {
|
|||
}
|
||||
|
||||
my $buffer = Slic3r::GCode::CoolingBuffer->new(
|
||||
config => $Slic3r::Config,
|
||||
config => $self->config,
|
||||
gcodegen => $gcodegen,
|
||||
);
|
||||
foreach my $print_z (sort { $a <=> $b } keys %layers) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue