chiark / gitweb /
Minor fixes in how the engine is called due to engine updates.
authordaid <daid303@gmail.com>
Fri, 21 Mar 2014 10:48:31 +0000 (11:48 +0100)
committerdaid <daid303@gmail.com>
Fri, 21 Mar 2014 10:48:31 +0000 (11:48 +0100)
Cura/util/sliceEngine.py

index 03aaff9a3c9fb899abc7ac996da0b8930738c7df..06d5d9d9f9c8804469f87b711212b44cd0361153 100644 (file)
@@ -443,6 +443,7 @@ class Engine(object):
                        'filamentDiameter': int(profile.getProfileSettingFloat('filament_diameter') * 1000),
                        'filamentFlow': int(profile.getProfileSettingFloat('filament_flow')),
                        'extrusionWidth': int(profile.calculateEdgeWidth() * 1000),
+                       'layer0extrusionWidth': int(profile.calculateEdgeWidth() * 1000),
                        'insetCount': int(profile.calculateLineCount()),
                        'downSkinCount': int(profile.calculateSolidLayerCount()) if profile.getProfileSetting('solid_bottom') == 'True' else 0,
                        'upSkinCount': int(profile.calculateSolidLayerCount()) if profile.getProfileSetting('solid_top') == 'True' else 0,
@@ -534,6 +535,10 @@ class Engine(object):
                        settings['gcodeFlavor'] = 1
                elif profile.getMachineSetting('gcode_flavor') == 'MakerBot':
                        settings['gcodeFlavor'] = 2
+               elif profile.getMachineSetting('gcode_flavor') == 'BFB':
+                       settings['gcodeFlavor'] = 3
+               elif profile.getMachineSetting('gcode_flavor') == 'Mach3':
+                       settings['gcodeFlavor'] = 4
                if profile.getProfileSetting('spiralize') == 'True':
                        settings['spiralizeMode'] = 1
                if profile.getProfileSetting('wipe_tower') == 'True' and extruderCount > 1: