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')
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: