1
0
mirror of https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git synced 2026-07-25 10:15:50 +00:00

More work for removing references to $Slic3r::Config

This commit is contained in:
Alessandro Ranellucci
2013-12-24 11:58:36 +01:00
parent 1157a7f859
commit 2956c1a2e5
4 changed files with 14 additions and 12 deletions
+2 -5
View File
@@ -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) {