From: daid303 Date: Fri, 31 May 2013 09:11:21 +0000 (+0200) Subject: Make the retraction enable tick box work. X-Git-Tag: 13.06.2~28 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=78aa50e940cdfeb5ed207466107c13a1e62836aa;p=cura.git Make the retraction enable tick box work. --- diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 13a0758a..1978ed01 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -6,7 +6,6 @@ import numpy import time import os import traceback -import shutil import threading import math @@ -441,7 +440,7 @@ class SceneView(openglGui.glGuiPanel): def _gcodeLoadCallback(self, progress): if self._gcode is None: return True - if len(self._gcode.layerList) % 5 == 0: + if len(self._gcode.layerList) % 15 == 0: time.sleep(0.1) if self._gcode is None: return True diff --git a/Cura/util/sliceEngine.py b/Cura/util/sliceEngine.py index 9fe0e234..6afd98d6 100644 --- a/Cura/util/sliceEngine.py +++ b/Cura/util/sliceEngine.py @@ -214,7 +214,7 @@ class Slicer(object): 'supportAngle': int(-1) if profile.getProfileSetting('support') == 'None' else int(60), 'supportEverywhere': int(1) if profile.getProfileSetting('support') == 'Everywhere' else int(0), 'supportLineWidth': int(profile.getProfileSettingFloat('support_rate') * profile.calculateEdgeWidth() * 1000 / 100), - 'retractionAmount': int(profile.getProfileSettingFloat('retraction_amount') * 1000), + 'retractionAmount': int(profile.getProfileSettingFloat('retraction_amount') * 1000) if profile.getProfileSetting('retraction_enable') == 'True' else 0, 'retractionSpeed': int(profile.getProfileSettingFloat('retraction_speed')), 'objectSink': int(profile.getProfileSettingFloat('object_sink') * 1000), 'minimalLayerTime': int(profile.getProfileSettingFloat('cool_min_layer_time')),