From 7b15cfbbcefe8280602c37b53e8c9d70a35ca8db Mon Sep 17 00:00:00 2001 From: Steven Abadie Date: Wed, 17 Dec 2014 19:49:00 -0700 Subject: [PATCH] Set offset of the print area center for Mini. --- Cura/gui/configWizard.py | 6 +++--- Cura/util/profile.py | 2 ++ 2 files changed, 5 insertions(+), 3 deletions(-) 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, -- 2.30.2