From 0d883b94502b4ecfc2686733013008bce8eb3b90 Mon Sep 17 00:00:00 2001 From: nickthetait Date: Mon, 23 Nov 2015 11:07:07 -0700 Subject: [PATCH] Set machine dimensions --- Cura/gui/configWizard.py | 3 ++- Cura/util/profile.py | 3 +-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cura/gui/configWizard.py b/Cura/gui/configWizard.py index 4d230336..9a6b1a73 100644 --- a/Cura/gui/configWizard.py +++ b/Cura/gui/configWizard.py @@ -1544,7 +1544,8 @@ class LulzbotChangeToolheadWizard(wx.wizard.Wizard): if profile.getMachineSetting('machine_type').startswith('lulzbot_mini'): self.RunWizard(self.lulzbotMiniToolheadPage) - elif profile.getMachineSetting('machine_type').startswith('lulzbot_TAZ_5'): + elif profile.getMachineSetting('machine_type').startswith('lulzbot_TAZ_5') or / + profile.getMachineSetting('machine_type').startswith('lulzbot_TAZ_4'): self.RunWizard(self.lulzbotTazHotendPage) elif profile.getMachineSetting('machine_type').startswith('lulzbot_TAZ_6'): self.RunWizard(self.lulzbotTaz6ToolheadPage) diff --git a/Cura/util/profile.py b/Cura/util/profile.py index d170dc71..f830b390 100644 --- a/Cura/util/profile.py +++ b/Cura/util/profile.py @@ -1213,8 +1213,7 @@ def calculateObjectSizeOffsets(): def getMachineCenterCoords(): if getMachineSetting('machine_center_is_zero') == 'True': return [0, 0] - elif getMachineSetting('machine_type') == 'lulzbot_mini' or \ - getMachineSetting('machine_type') == 'lulzbot_TAZ_6': + elif getMachineSetting('machine_type') == 'lulzbot_mini': return [(getMachineSettingFloat('machine_width') / 2) + 2.5, (getMachineSettingFloat('machine_width') / 2) + 0.5] return [getMachineSettingFloat('machine_width') / 2, getMachineSettingFloat('machine_depth') / 2] -- 2.30.2