chiark / gitweb /
Fix the bottom thickness with the quickprint settings.
authordaid303 <daid303@gmail.com>
Wed, 1 May 2013 12:21:09 +0000 (14:21 +0200)
committerdaid303 <daid303@gmail.com>
Wed, 1 May 2013 12:21:09 +0000 (14:21 +0200)
Cura/gui/simpleMode.py
Cura/util/sliceEngine.py

index dc732174f8598475bab091c495aaf54af389b533..673b9b7eb474a00008acfb72dc2695736f89110e 100644 (file)
@@ -109,7 +109,7 @@ class simpleModePanel(wx.Panel):
                put('raft_margin', '5')
                put('raft_base_material_amount', '100')
                put('raft_interface_material_amount', '100')
-               put('bottom_thickness', '0.0')
+               put('bottom_thickness', '0.3')
 
                if self.printSupport.GetValue():
                        put('support', 'Exterior Only')
@@ -131,7 +131,6 @@ class simpleModePanel(wx.Panel):
                        put('layer_height', '0.06')
                        put('fill_density', '20')
                        put('bottom_layer_speed', '15')
-                       put('bottom_thickness', '0.25')
                elif self.printTypeJoris.GetValue():
                        put('wall_thickness', nozzle_size * 1.5)
                        put('layer_height', '0.3')
index d6bdec7b2b84bf6749ab8722356ef3f3c65c23d3..d996b9214dbc8d5afbff0adc046588f5f351f34f 100644 (file)
@@ -188,7 +188,7 @@ class Slicer(object):
        def _engineSettings(self):
                return {
                        'layerThickness': int(profile.getProfileSettingFloat('layer_height') * 1000),
-                       'initialLayerThickness': int(profile.getProfileSettingFloat('bottom_thickness') * 1000),
+                       'initialLayerThickness': int(profile.getProfileSettingFloat('bottom_thickness') * 1000) if profile.getProfileSettingFloat('bottom_thickness') > 0.0 else int(profile.getProfileSettingFloat('layer_height') * 1000),
                        'filamentDiameter': int(profile.getProfileSettingFloat('filament_diameter') * 1000),
                        'extrusionWidth': int(profile.calculateEdgeWidth() * 1000),
                        'insetCount': int(profile.calculateLineCount()),