mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 17:27:52 -06:00
Remove package variable $Slic3r::Config
This commit is contained in:
parent
0693cfb116
commit
1157a7f859
11 changed files with 91 additions and 82 deletions
|
@ -4,7 +4,7 @@ use Moo;
|
|||
use Slic3r::Geometry qw(PI scale);
|
||||
|
||||
has 'nozzle_diameter' => (is => 'ro', required => 1);
|
||||
has 'layer_height' => (is => 'ro', default => sub { $Slic3r::Config->layer_height });
|
||||
has 'layer_height' => (is => 'ro', required => 1);
|
||||
has 'role' => (is => 'ro', default => sub { '' });
|
||||
|
||||
has 'width' => (is => 'rwp', builder => 1);
|
||||
|
@ -89,6 +89,9 @@ package Slic3r::Flow::Bridge;
|
|||
use Moo;
|
||||
extends 'Slic3r::Flow';
|
||||
|
||||
# layer_height is not required in this case
|
||||
has '+layer_height' => (is => 'ro', required => 0);
|
||||
|
||||
use Slic3r::Geometry qw(PI);
|
||||
|
||||
sub _build_width {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue