Skip to content

Commit

Permalink
fix: apply print_speed_layer_0 on prime tower rather than travel speed (
Browse files Browse the repository at this point in the history
  • Loading branch information
BagelOrb committed Apr 18, 2017
1 parent 2ad0a04 commit 55ce90c
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/settings/PathConfigStorage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -180,21 +180,23 @@ void cura::PathConfigStorage::handleInitialLayerSpeedup(const SliceDataStorage&
for (int extruder_nr = 0; extruder_nr < storage.meshgroup->getExtruderCount(); ++extruder_nr)
{
const ExtruderTrain* train = storage.meshgroup->getExtruderTrain(extruder_nr);
GCodePathConfig::SpeedDerivatives initial_layer_speed_config{
GCodePathConfig::SpeedDerivatives initial_layer_travel_speed_config{
train->getSettingInMillimetersPerSecond("speed_travel_layer_0")
, train->getSettingInMillimetersPerSecond("acceleration_travel_layer_0")
, train->getSettingInMillimetersPerSecond("jerk_travel_layer_0")
};
GCodePathConfig& travel = travel_config_per_extruder[extruder_nr];

travel.smoothSpeed(initial_layer_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);
travel.smoothSpeed(initial_layer_travel_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);

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

const GCodePathConfig::SpeedDerivatives& initial_layer_print_speed_config = global_first_layer_config_per_extruder[extruder_nr];

GCodePathConfig& prime_tower = prime_tower_config_per_extruder[extruder_nr];

prime_tower.smoothSpeed(initial_layer_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);
prime_tower.smoothSpeed(initial_layer_print_speed_config, std::max(0, layer_nr), initial_speedup_layer_count);
}

}
Expand Down

1 comment on commit 55ce90c

@Appesteijn
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

Please sign in to comment.