mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-24 07:03:59 -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
|
@ -90,13 +90,14 @@ use Moo;
|
|||
extends 'Slic3r::Flow';
|
||||
|
||||
# layer_height is not required in this case
|
||||
has '+layer_height' => (is => 'ro', required => 0);
|
||||
has '+layer_height' => (is => 'ro', required => 0);
|
||||
has 'bridge_flow_ratio' => (is => 'ro', required => 1);
|
||||
|
||||
use Slic3r::Geometry qw(PI);
|
||||
|
||||
sub _build_width {
|
||||
my $self = shift;
|
||||
return sqrt($Slic3r::Config->bridge_flow_ratio * ($self->nozzle_diameter**2));
|
||||
return sqrt($self->bridge_flow_ratio * ($self->nozzle_diameter**2));
|
||||
}
|
||||
|
||||
sub _build_spacing {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue