diff options
author | Steven Abadie <steven@alephobjects.com> | 2014-12-18 05:49:00 +0300 |
---|---|---|
committer | Steven Abadie <steven@alephobjects.com> | 2014-12-18 05:49:00 +0300 |
commit | 7b15cfbbcefe8280602c37b53e8c9d70a35ca8db (patch) | |
tree | 173062c739f088daa9ab637c313507c45c3e9499 /Cura | |
parent | 62113fa98b1f9fc06c8546afac1159c198e69c80 (diff) |
Set offset of the print area center for Mini.
Diffstat (limited to 'Cura')
-rw-r--r-- | Cura/gui/configWizard.py | 6 | ||||
-rw-r--r-- | 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 e2fcfaa788..1748c8b802 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 4914e4ccbc..15b077b6d9 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, |