From abe1e54c0d74f81057847f00d64b52d98e40b4f7 Mon Sep 17 00:00:00 2001 From: daid Date: Tue, 29 Oct 2013 09:13:00 +0100 Subject: [PATCH] Follow the object when centering. --- Cura/gui/sceneView.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 4d2d9a62..d7001197 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -460,6 +460,8 @@ class SceneView(openglGui.glGuiPanel): return self._focusObj.setPosition(numpy.array([0.0, 0.0])) self._scene.pushFree() + newViewPos = numpy.array([self._focusObj.getPosition()[0], self._focusObj.getPosition()[1], self._focusObj.getSize()[2] / 2]) + self._animView = openglGui.animation(self, self._viewTarget.copy(), newViewPos, 0.5) def _splitCallback(self, progress): print progress -- 2.30.2