mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-07-19 04:37:52 -06:00
Number of slow layers #796
This commit is contained in:
parent
117cda00bc
commit
be4373583f
7 changed files with 35 additions and 3 deletions
|
@ -4000,6 +4000,21 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
|
|||
if (path.role() != erBottomSurface)
|
||||
speed = m_config.get_abs_value("initial_layer_speed");
|
||||
}
|
||||
else if(m_config.slow_down_layers > 1){
|
||||
const auto _layer = layer_id() + 1;
|
||||
if (_layer > 0 && _layer < m_config.slow_down_layers) {
|
||||
const auto first_layer_speed =
|
||||
is_perimeter(path.role())
|
||||
? m_config.get_abs_value("initial_layer_speed")
|
||||
: m_config.get_abs_value("initial_layer_infill_speed");
|
||||
if (first_layer_speed < speed) {
|
||||
speed = std::min(
|
||||
speed,
|
||||
Slic3r::lerp(first_layer_speed, speed,
|
||||
(double)_layer / m_config.slow_down_layers));
|
||||
}
|
||||
}
|
||||
}
|
||||
//BBS: remove this config
|
||||
//else if (this->object_layer_over_raft())
|
||||
// speed = m_config.get_abs_value("first_layer_speed_over_raft", speed);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue