From: daid Date: Tue, 29 Oct 2013 08:13:00 +0000 (+0100) Subject: Follow the object when centering. X-Git-Tag: 13.11.2~34 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=abe1e54c0d74f81057847f00d64b52d98e40b4f7;p=cura.git Follow the object when centering. --- 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