From: nickthetait Date: Mon, 23 Nov 2015 18:07:07 +0000 (-0700) Subject: Set machine dimensions X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=0d883b94502b4ecfc2686733013008bce8eb3b90;p=cura.git Set machine dimensions --- 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]