mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-18 19:12:17 +00:00
Refactoring and integrations to the bed temperature handling
This commit is contained in:
@@ -62,6 +62,8 @@ our $filament_diameter = 3; # mm
|
||||
our $extrusion_multiplier = 1;
|
||||
our $temperature = 200;
|
||||
our $first_layer_temperature;
|
||||
our $bed_temperature = 0;
|
||||
our $first_layer_bed_temperature;
|
||||
|
||||
# speed options
|
||||
our $travel_speed = 130; # mm/s
|
||||
|
||||
@@ -111,7 +111,6 @@ our $Options = {
|
||||
label => 'Bed Temperature (°C)',
|
||||
cli => 'bed-temperature=i',
|
||||
type => 'i',
|
||||
important => 1,
|
||||
},
|
||||
|
||||
# speed options
|
||||
@@ -608,11 +607,8 @@ sub validate {
|
||||
die "Invalid value for --bridge-flow-ratio\n"
|
||||
if $Slic3r::bridge_flow_ratio <= 0;
|
||||
|
||||
# --first_layer_temperature
|
||||
$Slic3r::first_layer_temperature = $Slic3r::temperature unless $Slic3r::first_layer_temperature;
|
||||
|
||||
# --first-layer-bed-temperature
|
||||
$Slic3r::first_layer_bed_temperature = $Slic3r::bed_temperature unless $Slic3r::first_layer_bed_temperature;
|
||||
$Slic3r::first_layer_temperature //= $Slic3r::temperature; #/
|
||||
$Slic3r::first_layer_bed_temperature //= $Slic3r::bed_temperature; #/
|
||||
|
||||
# G-code flavors
|
||||
$Slic3r::extrusion_axis = 'A' if $Slic3r::gcode_flavor eq 'mach3';
|
||||
@@ -621,7 +617,6 @@ sub validate {
|
||||
$Slic3r::small_perimeter_speed ||= $Slic3r::perimeter_speed;
|
||||
$Slic3r::bridge_speed ||= $Slic3r::infill_speed;
|
||||
$Slic3r::solid_infill_speed ||= $Slic3r::infill_speed;
|
||||
$Slic3r::first_layer_temperature //= $Slic3r::temperature; #/
|
||||
}
|
||||
|
||||
1;
|
||||
|
||||
@@ -25,7 +25,7 @@ sub new {
|
||||
},
|
||||
filament => {
|
||||
title => 'Filament',
|
||||
options => [qw(filament_diameter extrusion_multiplier temperature first_layer_temperature)],
|
||||
options => [qw(filament_diameter extrusion_multiplier temperature first_layer_temperature bed_temperature first_layer_bed_temperature)],
|
||||
},
|
||||
print_speed => {
|
||||
title => 'Print speed',
|
||||
|
||||
Reference in New Issue
Block a user