mirror of
https://github.com/OrcaSlicer/OrcaSlicer.git
synced 2026-05-19 19:33:47 +00:00
Do not call srand for each layer, to get better randomization of starting points. #694
This commit is contained in:
@@ -89,7 +89,6 @@ sub extrude_loop {
|
|||||||
# or randomize if requested
|
# or randomize if requested
|
||||||
my $last_pos = $self->last_pos;
|
my $last_pos = $self->last_pos;
|
||||||
if ($Slic3r::Config->randomize_start && $loop->role == EXTR_ROLE_CONTOUR_INTERNAL_PERIMETER) {
|
if ($Slic3r::Config->randomize_start && $loop->role == EXTR_ROLE_CONTOUR_INTERNAL_PERIMETER) {
|
||||||
srand $self->layer->id * 10;
|
|
||||||
$last_pos = Slic3r::Point->new(scale $Slic3r::Config->print_center->[X], scale $Slic3r::Config->bed_size->[Y]);
|
$last_pos = Slic3r::Point->new(scale $Slic3r::Config->print_center->[X], scale $Slic3r::Config->bed_size->[Y]);
|
||||||
$last_pos->rotate(rand(2*PI), $Slic3r::Config->print_center);
|
$last_pos->rotate(rand(2*PI), $Slic3r::Config->print_center);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user