mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-12 01:07:57 -06:00
Ported PrintObject::total_layer_count() to XS
This commit is contained in:
parent
c7f5753a28
commit
eb23990d6d
4 changed files with 15 additions and 12 deletions
|
@ -32,14 +32,6 @@ sub support_layers {
|
|||
return [ map $self->get_support_layer($_), 0..($self->support_layer_count - 1) ];
|
||||
}
|
||||
|
||||
# this is the *total* layer count (including support layers)
|
||||
# this value is not supposed to be compared with $layer->id
|
||||
# since they have different semantics
|
||||
sub total_layer_count {
|
||||
my $self = shift;
|
||||
return $self->layer_count + $self->support_layer_count;
|
||||
}
|
||||
|
||||
# this should be idempotent
|
||||
sub slice {
|
||||
my $self = shift;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue