mirror of
https://git.mirrors.martin98.com/https://github.com/SoftFever/OrcaSlicer.git
synced 2025-08-01 03:02:04 +08:00
fix slow_down_layers (#5396)
Setting slow_down_layers to 2 or more results in wrong number of slowed down layers. Do not increment layer_id since bottom layer (#0) handled separately.
This commit is contained in:
parent
1d5fb94dd1
commit
966c18cbad
@ -5195,7 +5195,7 @@ std::string GCode::_extrude(const ExtrusionPath &path, std::string description,
|
|||||||
speed = m_config.get_abs_value("initial_layer_speed");
|
speed = m_config.get_abs_value("initial_layer_speed");
|
||||||
}
|
}
|
||||||
else if(m_config.slow_down_layers > 1){
|
else if(m_config.slow_down_layers > 1){
|
||||||
const auto _layer = layer_id() + 1;
|
const auto _layer = layer_id();
|
||||||
if (_layer > 0 && _layer < m_config.slow_down_layers) {
|
if (_layer > 0 && _layer < m_config.slow_down_layers) {
|
||||||
const auto first_layer_speed =
|
const auto first_layer_speed =
|
||||||
is_perimeter(path.role())
|
is_perimeter(path.role())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user