mirror of
https://git.mirrors.martin98.com/https://github.com/slic3r/Slic3r.git
synced 2025-08-06 01:56:08 +08:00
Don't combine more layers than you have nozzle.
This commit is contained in:
parent
d1f6cdf55f
commit
2ff9532f43
@ -214,14 +214,16 @@ 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
|
my $infill_combined_flow = $layerm->layer->object->config->layer_height * $layerm->region->config->infill_every_layers; # multiply the required layer height by infill_every_layers
|
||||||
if ($layerm->region->config->infill_every_layers > 1) {
|
if ($infill_combined_flow == 0) {
|
||||||
$infill_combined_flow =
|
# just in case something happens we don't want to put in a 0mm layer.
|
||||||
$layerm->layer->object->config->layer_height*$layerm->region->config->infill_every_layers;
|
$infill_combined_flow = $layerm->layer->object->config->layer_height;
|
||||||
} else {
|
|
||||||
$infill_combined_flow =
|
|
||||||
$layerm->layer->object->config->layer_height;
|
|
||||||
}
|
}
|
||||||
|
if ($infill_combined_flow > $flow->nozzle_diameter) {
|
||||||
|
# can't put out layers bigger than the nozzle width, go as big as possible
|
||||||
|
$infill_combined_flow = (($flow->nozzle_diameter / $layerm->layer->object->config->layer_height) % 1) * $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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user