+ settings['skirtMinLength'] = int(profile.getProfileSettingFloat('skirt_minimal_length') * 1000)
+
+ if profile.getProfileSetting('fix_horrible_union_all_type_a') == 'True':
+ settings['fixHorrible'] |= 0x01
+ if profile.getProfileSetting('fix_horrible_union_all_type_b') == 'True':
+ settings['fixHorrible'] |= 0x02
+ if profile.getProfileSetting('fix_horrible_use_open_bits') == 'True':
+ settings['fixHorrible'] |= 0x10
+ if profile.getProfileSetting('fix_horrible_extensive_stitching') == 'True':
+ settings['fixHorrible'] |= 0x04
+
+ if settings['layerThickness'] <= 0:
+ settings['layerThickness'] = 1000
+ if profile.getMachineSetting('gcode_flavor') == 'UltiGCode':
+ settings['gcodeFlavor'] = 1
+ if profile.getProfileSetting('spiralize') == 'True':
+ settings['spiralizeMode'] = 1
+ if profile.getProfileSetting('wipe_tower') == 'True':
+ settings['enableWipeTower'] = 1
+ if profile.getProfileSetting('ooze_shield') == 'True':
+ settings['enableOozeShield'] = 1