diff options
author | Diego Prado Gesto <d.pradogesto@ultimaker.com> | 2017-10-16 21:21:42 +0300 |
---|---|---|
committer | Lipu Fei <lipu.fei815@gmail.com> | 2017-10-17 11:12:29 +0300 |
commit | b9a9ef8823d371dbf12b7c5e709d472eb43364d6 (patch) | |
tree | 306f481a519706c3964309e7db1df9939c181e83 | |
parent | 8ef918829f6bfa7e46b2c3638cfe2e73b1e71b86 (diff) |
CURA-4457 Add parenthesis in conditional statement
-rw-r--r-- | cura/Settings/QualityAndUserProfilesModel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cura/Settings/QualityAndUserProfilesModel.py b/cura/Settings/QualityAndUserProfilesModel.py index 602f8768da..9d7d913d5e 100644 --- a/cura/Settings/QualityAndUserProfilesModel.py +++ b/cura/Settings/QualityAndUserProfilesModel.py @@ -58,8 +58,8 @@ class QualityAndUserProfilesModel(ProfilesModel): # If the printer has multiple extruders then quality changes related to the current extruder are kept
filtered_quality_changes = [qc for qc in quality_changes_list if qc.getMetaDataEntry("quality_type") in quality_type_set and
qc.getMetaDataEntry("extruder") is not None and
- qc.getMetaDataEntry("extruder") == active_extruder.definition.getMetaDataEntry("quality_definition") or
- qc.getMetaDataEntry("extruder") == active_extruder.definition.getId()]
+ (qc.getMetaDataEntry("extruder") == active_extruder.definition.getMetaDataEntry("quality_definition") or
+ qc.getMetaDataEntry("extruder") == active_extruder.definition.getId())]
else:
# If not, the quality changes of the global stack are selected
filtered_quality_changes = [qc for qc in quality_changes_list if qc.getMetaDataEntry("quality_type") in quality_type_set and
|