Corrected extruder offset direction

master
Daid 2012-04-29 14:50:52 +02:00
parent 74d8329a73
commit 8f39846349
2 changed files with 6 additions and 6 deletions

View File

@ -66,8 +66,8 @@ class sliceProgessPanel(wx.Panel):
if idx > 0:
profile.putProfileSetting('fan_enabled', 'False')
profile.putProfileSetting('skirt_line_count', '0')
profile.putProfileSetting('machine_center_x', profile.getProfileSettingFloat('machine_center_x') + float(profile.getPreference('extruder_offset_x%d' % (idx))))
profile.putProfileSetting('machine_center_y', profile.getProfileSettingFloat('machine_center_y') + float(profile.getPreference('extruder_offset_y%d' % (idx))))
profile.putProfileSetting('machine_center_x', profile.getProfileSettingFloat('machine_center_x') - float(profile.getPreference('extruder_offset_x%d' % (idx))))
profile.putProfileSetting('machine_center_y', profile.getProfileSettingFloat('machine_center_y') - float(profile.getPreference('extruder_offset_y%d' % (idx))))
profile.putProfileSetting('alternative_center', self.filelist[0])
if len(self.filelist) > 1:
profile.putProfileSetting('add_start_end_gcode', 'False')

View File

@ -93,13 +93,13 @@ class gcode():
line = line[0:line.find(';')]
T = self.getCodeInt(line, 'T')
if T is not None:
if currentExtruder > 0:
posOffset.x += float(profile.getPreference('extruder_offset_x%d' % (currentExtruder)))
posOffset.y += float(profile.getPreference('extruder_offset_y%d' % (currentExtruder)))
currentExtruder = T
if currentExtruder > 0:
posOffset.x -= float(profile.getPreference('extruder_offset_x%d' % (currentExtruder)))
posOffset.y -= float(profile.getPreference('extruder_offset_y%d' % (currentExtruder)))
currentExtruder = T
if currentExtruder > 0:
posOffset.x += float(profile.getPreference('extruder_offset_x%d' % (currentExtruder)))
posOffset.y += float(profile.getPreference('extruder_offset_y%d' % (currentExtruder)))
G = self.getCodeInt(line, 'G')
if G is not None: