Ported PrintObject::total_layer_count() to XS

This commit is contained in:
Alessandro Ranellucci 2014-11-30 22:01:46 +01:00
parent c7f5753a28
commit eb23990d6d
4 changed files with 15 additions and 12 deletions

View file

@ -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;