mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-08-06 08:26:07 +08:00
Corrected extruder offset direction
This commit is contained in:
parent
74d8329a73
commit
8f39846349
@ -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')
|
||||
|
@ -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:
|
||||
|
Loading…
x
Reference in New Issue
Block a user