Skip to content

Commit 55ce90c

Browse files
committed
fix: apply print_speed_layer_0 on prime tower rather than travel speed (CURA-3694)
1 parent 2ad0a04 commit 55ce90c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/settings/PathConfigStorage.cpp

+5-3
Original file line numberDiff line numberDiff line change
@@ -180,21 +180,23 @@ void cura::PathConfigStorage::handleInitialLayerSpeedup(const SliceDataStorage&
180180
for (int extruder_nr = 0; extruder_nr < storage.meshgroup->getExtruderCount(); ++extruder_nr)
181181
{
182182
const ExtruderTrain* train = storage.meshgroup->getExtruderTrain(extruder_nr);
183-
GCodePathConfig::SpeedDerivatives initial_layer_speed_config{
183+
GCodePathConfig::SpeedDerivatives initial_layer_travel_speed_config{
184184
train->getSettingInMillimetersPerSecond("speed_travel_layer_0")
185185
, train->getSettingInMillimetersPerSecond("acceleration_travel_layer_0")
186186
, train->getSettingInMillimetersPerSecond("jerk_travel_layer_0")
187187
};
188188
GCodePathConfig& travel = travel_config_per_extruder[extruder_nr];
189189

190-
travel.smoothSpeed(initial_layer_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);
190+
travel.smoothSpeed(initial_layer_travel_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);
191191

192192
// don't smooth speed for the skirt/brim!
193193
// NOTE: not smoothing skirt/brim means the speeds are also not smoothed for the draft/ooze shield
194194

195+
const GCodePathConfig::SpeedDerivatives& initial_layer_print_speed_config = global_first_layer_config_per_extruder[extruder_nr];
196+
195197
GCodePathConfig& prime_tower = prime_tower_config_per_extruder[extruder_nr];
196198

197-
prime_tower.smoothSpeed(initial_layer_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);
199+
prime_tower.smoothSpeed(initial_layer_print_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);
198200
}
199201

200202
}

0 commit comments

Comments
 (0)