From: daid303 Date: Mon, 25 Mar 2013 09:21:20 +0000 (+0100) Subject: Split the scene logic into another file, so we can add auto-placement there without... X-Git-Tag: 13.05~158 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=commitdiff_plain;h=cc9f4f8318b8f728f0a70d793212f7f05fb0c46d;p=cura.git Split the scene logic into another file, so we can add auto-placement there without making a huge mess of the gui code. --- diff --git a/Cura/gui/sceneView.py b/Cura/gui/sceneView.py index 22e14422..1ae0c08a 100644 --- a/Cura/gui/sceneView.py +++ b/Cura/gui/sceneView.py @@ -261,7 +261,6 @@ void main(void) #f = glReadPixels(self._mouseX, self.GetSize().GetHeight() - 1 - self._mouseY, 1, 1, GL_DEPTH_COMPONENT, GL_FLOAT)[0][0] #mouse3Dpos = opengl.unproject(self._mouseX, self.viewport[1] + self.viewport[3] - self._mouseY, f, self.modelMatrix, self.projMatrix, self.viewport) - return self._init3DView() glTranslate(0,0,-self._zoom) glRotate(-self._pitch, 1,0,0)