Skip to content

Commit

Permalink
Fix error when linear advance settings are not set for all extruders
Browse files Browse the repository at this point in the history
Fixes #31
  • Loading branch information
fieldOfView committed Feb 23, 2021
1 parent 410a395 commit a0ca056
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LinearAdvanceSettingPlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,7 @@ def _filterGcode(self, output_device: "OutputDevice") -> None:

current_linear_advance_factors[extruder_nr] = linear_advance_factor

apply_factor_per_feature[extruder_nr] = False
for feature_setting_key in self.__gcode_type_to_setting_key.values():
if extruder_stack.getProperty(feature_setting_key, "value") != linear_advance_factor:
apply_factor_per_feature[extruder_nr] = True
Expand Down

0 comments on commit a0ca056

Please sign in to comment.