From: daid303 Date: Fri, 22 Mar 2013 18:23:25 +0000 (+0100) Subject: Small fix on the new view position after object selection. X-Git-Tag: 13.05~163 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=d97b42b3aad9c914d5b7dd336414b23d9a81ae53;p=cura.git Small fix on the new view position after object selection. --- diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 3ffde6bc..77b72459 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -98,7 +98,7 @@ class SceneView(openglGui.glGuiPanel): if self._mouseState == 'dragOrClick': if e.Button == 1 and self._focusObj is not None: self._selectedObj = self._focusObj - newViewPos = numpy.array([self._selectedObj.getPosition()[0], self._selectedObj.getPosition()[1], self._selectedObj.getMinimum()[2] / 2]) + newViewPos = numpy.array([self._selectedObj.getPosition()[0], self._selectedObj.getPosition()[1], self._selectedObj.getMaximum()[2] / 2]) self._animView = anim(self._viewTarget.copy(), newViewPos, 0.5) if self._mouseState == 'doubleClick': if self._selectedObj is not None: