import time
import os
import traceback
-import shutil
import threading
import math
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
'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')),