chiark / gitweb /
Fix center coords for lulzbot mini if using non square size
authorYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 20 Jan 2016 17:34:09 +0000 (12:34 -0500)
committerYouness Alaoui <kakaroto@kakaroto.homelinux.net>
Wed, 20 Jan 2016 17:34:24 +0000 (12:34 -0500)
Cura/util/profile.py

index bb13a14aa6cd85d4ef9c6fb3f24703dc6398e9b3..f71ca9169f3b224b57e05ce938a6f9668b1edf87 100644 (file)
@@ -1215,7 +1215,7 @@ def getMachineCenterCoords():
                return [0, 0]
        elif getMachineSetting('machine_type') == 'lulzbot_mini':
                return [(getMachineSettingFloat('machine_width') / 2) + 2.5,
-                           (getMachineSettingFloat('machine_width') / 2) + 0.5]
+                           (getMachineSettingFloat('machine_depth') / 2) + 0.5]
        return [getMachineSettingFloat('machine_width') / 2, getMachineSettingFloat('machine_depth') / 2]
 
 #Returns a list of convex polygons, first polygon is the allowed area of the machine,