chiark / gitweb /
Show why overhang view is not working.
authordaid <daid303@gmail.com>
Mon, 17 Jun 2013 07:44:52 +0000 (09:44 +0200)
committerdaid <daid303@gmail.com>
Mon, 17 Jun 2013 07:44:52 +0000 (09:44 +0200)
Cura/gui/sceneView.py

index 6eb8fc544ce5551f9db34e411eeea6e6db6caa61..a9f32f461b7d32bbf4d714c743b234b31c1151a5 100644 (file)
@@ -1063,6 +1063,14 @@ void main(void)
                                glTranslate(pos[0], pos[1], pos[2])
                                self.tool.OnDraw()
                                glPopMatrix()
+               if self.viewMode == 'overhang' and not opengl.hasShaderSupport():
+                       glDisable(GL_DEPTH_TEST)
+                       glPushMatrix()
+                       glLoadIdentity()
+                       glTranslate(0,-4,-10)
+                       glColor4ub(60,60,60,255)
+                       opengl.glDrawStringCenter('Overhang view not working due to lack of OpenGL shaders support.')
+                       glPopMatrix()
 
        def _renderObject(self, obj, brightness = False, addSink = True):
                glPushMatrix()