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