chiark / gitweb /
Always use machine size / 2 as machine center and remove the setting. Also fixed...
[cura.git] / Cura / util / svg.py
index c68206f1abb4190e6bfecc4a14a431540b4212b4..6485e930fa20331919573cb94ba871bbe5deea26 100644 (file)
@@ -215,7 +215,7 @@ if __name__ == '__main__':
 
        f.write(';TYPE:CUSTOM\n')
        f.write(profile.getAlterationFileContents('start.gcode'))
-       svg.center(complex(profile.getProfileSettingFloat('machine_center_x'), profile.getProfileSettingFloat('machine_center_y')))
+       svg.center(complex(profile.getPreferenceFloat('machine_width') / 2, profile.getPreferenceFloat('machine_depth') / 2))
 
        layerThickness = 0.4
        filamentRadius = profile.getProfileSettingFloat('filament_diameter') / 2