mirror of
https://github.com/FULU-Foundation/OrcaSlicer-bambulab.git
synced 2026-10-15 19:52:52 +02:00
Huge speed boost by reducing the number of method calls in GCode.pm
This commit is contained in:
1 parent
73c05a6092
commit
055273fbc8
5 files changed
+85
-64
No files matched your search
@@ -65,6 +65,11 @@ sub points {
|
||||
return $self->polyline;
|
||||
}
|
||||
|
||||
sub last_point {
|
||||
my $self = shift;
|
||||
return $self->polyline->[-1];
|
||||
}
|
||||
|
||||
sub is_perimeter {
|
||||
my $self = shift;
|
||||
return $self->role == EXTR_ROLE_PERIMETER
|
||||
|
||||
Reference in new issue
Block a user