From 26be41df17debaac4a6d657e8da7ae3b1af5cd90 Mon Sep 17 00:00:00 2001 From: simonxeko Date: Wed, 23 Aug 2017 19:00:46 +0800 Subject: [PATCH] Fix definition of support_material_spacing --- fluxclient/printer/stl_slicer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fluxclient/printer/stl_slicer.py b/fluxclient/printer/stl_slicer.py index 97356d5..f491af4 100644 --- a/fluxclient/printer/stl_slicer.py +++ b/fluxclient/printer/stl_slicer.py @@ -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)) @@ -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'])