From 4671c7c11b458528afe31f2e6c9f63ebf2bf9d0a Mon Sep 17 00:00:00 2001 From: Gareth Hay Date: Mon, 11 Jul 2016 14:15:45 +0100 Subject: [PATCH] Fixing sliceEngine numpy line as per issue #702 --- Cura/util/sliceEngine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Cura/util/sliceEngine.py b/Cura/util/sliceEngine.py index f82d2fc81..a38603dae 100644 --- a/Cura/util/sliceEngine.py +++ b/Cura/util/sliceEngine.py @@ -343,7 +343,7 @@ def _runEngine(self, scene, overrides, old_thread): objMax[1] = max(oMax[1], objMax[1]) if objMin is None: return - pos += (objMin + objMax) / 2.0 * 1000 + pos = numpy.add( pos, (objMin + objMax) / 2.0 * 1000, out=pos, casting='unsafe') commandList += ['-s', 'posx=%d' % int(pos[0]), '-s', 'posy=%d' % int(pos[1])] vertexTotal = [0] * 4