From: Steven Abadie Date: Thu, 18 Dec 2014 02:49:00 +0000 (-0700) Subject: Set offset of the print area center for Mini. X-Git-Tag: 14.09-1.18~24 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=7b15cfbbcefe8280602c37b53e8c9d70a35ca8db;p=cura.git Set offset of the print area center for Mini. --- diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index e2fcfaa7..1748c8b8 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -452,9 +452,9 @@ class MachineSelectPage(InfoPage): profile.putMachineSetting('machine_type', 'lulzbot_TAZ') profile.putMachineSetting('serial_baud', '115200') else: - profile.putMachineSetting('machine_width', '158') - profile.putMachineSetting('machine_depth', '158') - profile.putMachineSetting('machine_height', '155') + profile.putMachineSetting('machine_width', '155') + profile.putMachineSetting('machine_depth', '155') + profile.putMachineSetting('machine_height', '163') profile.putProfileSetting('nozzle_size', '0.5') profile.putMachineSetting('machine_name', 'LulzBot Mini') profile.putMachineSetting('machine_type', 'lulzbot_mini') diff --git a/Cura/util/profile.py b/Cura/util/profile.py index 4914e4cc..15b077b6 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -1107,6 +1107,8 @@ def calculateObjectSizeOffsets(): def getMachineCenterCoords(): if getMachineSetting('machine_center_is_zero') == 'True': return [0, 0] + elif profile.getMachineSetting('machine_type') == 'lulzbot_mini': + return [(getMachineSettingFloat('machine_width') / 2) + 2, (getMachineSettingFloat('machine_width') / 2) + 2] return [getMachineSettingFloat('machine_width') / 2, getMachineSettingFloat('machine_depth') / 2] #Returns a list of convex polygons, first polygon is the allowed area of the machine,