mirror of
https://git.mirrors.martin98.com/https://github.com/prusa3d/PrusaSlicer.git
synced 2025-07-20 12:44:26 +08:00
Revert "found the right spot for infill_every_layers."
This reverts commit d1f6cdf55f87c2ecac52359d401c6103d2235c46.
This commit is contained in:
parent
fc0c0ca1f0
commit
fc8c16d33a
@ -214,14 +214,6 @@ sub make_fill {
|
||||
|
||||
# calculate flow spacing for infill pattern generation
|
||||
my $using_internal_flow = 0;
|
||||
my $infill_combined_flow = 0; # multiply the required layer height by infill_every_layers
|
||||
if ($layerm->region->config->infill_every_layers > 1) {
|
||||
$infill_combined_flow =
|
||||
$layerm->layer->object->config->layer_height*$layerm->region->config->infill_every_layers;
|
||||
} else {
|
||||
$infill_combined_flow =
|
||||
$layerm->layer->object->config->layer_height;
|
||||
}
|
||||
if (!$is_solid && !$is_bridge) {
|
||||
# it's internal infill, so we can calculate a generic flow spacing
|
||||
# for all layers, for avoiding the ugly effect of
|
||||
@ -229,8 +221,7 @@ sub make_fill {
|
||||
# layer height
|
||||
my $internal_flow = $layerm->region->flow(
|
||||
FLOW_ROLE_INFILL,
|
||||
$infill_combined_flow,
|
||||
|
||||
$layerm->object->config->layer_height*$layerm->config->infill_every_layers, # TODO: handle infill_every_layers?
|
||||
0, # no bridge
|
||||
0, # no first layer
|
||||
-1, # auto width
|
||||
|
Loading…
x
Reference in New Issue
Block a user