Skip to content

Commit

Permalink
Fix definition of support_material_spacing
Browse files Browse the repository at this point in the history
  • Loading branch information
simonxeko committed Aug 23, 2017
1 parent e7c89e9 commit 26be41d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions fluxclient/printer/stl_slicer.py
Original file line number Diff line number Diff line change
Expand Up @@ -1134,7 +1134,7 @@ def generate_cura2_config(cls, file_path, content, delete=None):
definition['overrides']['adhesion_type']['default_value'] = 'brim'

# Compatible with old keyword
if definition['overrides'].get('support_type', '') == 'touching_build_plate':
if definition['overrides']['support_type']['default_value'] == 'touching_build_plate':
definition['overrides']['support_type'] = {'default_value': 'buildplate'}

logger.info(json.dumps(definition))
Expand Down Expand Up @@ -1191,7 +1191,7 @@ def cura_ini_writer(cls, file_path, content, delete=None):
else:
new_content['supportAngle'] = 90 - int(content['support_material_threshold'])
new_content['supportZDistance'] = thousand(content['support_material_contact_distance'])
new_content['supportXYDistance'] = thousand(content['support_material_spacing'])
new_content['supportLineDistance'] = thousand(content['support_material_spacing'])
new_content['supportType'] = {'GRID': 0, 'LINES': 1}.get(content['support_material_pattern'], 0)
new_content['supportEverywhere'] = int(content['support_everywhere'])

Expand Down

0 comments on commit 26be41d

Please sign in to comment.