From babb0bca980b29df426f2508aa0d67c283194e00 Mon Sep 17 00:00:00 2001 From: daid303 Date: Mon, 27 May 2013 17:21:19 +0200 Subject: [PATCH] Fix rostock options. --- Cura/util/sliceEngine.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Cura/util/sliceEngine.py b/Cura/util/sliceEngine.py index 0cbbb8fc..fa25bab0 100644 --- a/Cura/util/sliceEngine.py +++ b/Cura/util/sliceEngine.py @@ -105,7 +105,7 @@ class Slicer(object): with open(self._binaryStorageFilename, "wb") as f: order = scene.printOrder() if order is None: - pos = numpy.array([profile.getPreferenceFloat('machine_width') * 1000 / 2, profile.getPreferenceFloat('machine_depth') * 1000 / 2]) + pos = numpy.array(profile.getMachineCenterCoords()) * 1000 commandList += ['-s', 'posx=%d' % int(pos[0]), '-s', 'posy=%d' % int(pos[1])] vertexTotal = 0 @@ -132,7 +132,7 @@ class Slicer(object): f.write(numpy.array([mesh.vertexCount], numpy.int32).tostring()) f.write(mesh.vertexes.tostring()) pos = obj.getPosition() * 1000 - pos += numpy.array([profile.getPreferenceFloat('machine_width') * 1000 / 2, profile.getPreferenceFloat('machine_depth') * 1000 / 2]) + pos += numpy.array(profile.getMachineCenterCoords()) * 1000 commandList += ['-m', ','.join(map(str, obj._matrix.getA().flatten()))] commandList += ['-s', 'posx=%d' % int(pos[0]), '-s', 'posy=%d' % int(pos[1])] commandList += ['#' * len(obj._meshList)] -- 2.30.2