chiark / gitweb /
Fix the overhang display angle.
authordaid <daid303@gmail.com>
Tue, 11 Jun 2013 13:51:48 +0000 (15:51 +0200)
committerdaid <daid303@gmail.com>
Tue, 11 Jun 2013 13:51:48 +0000 (15:51 +0200)
Cura/gui/sceneView.py

index 49c0ddd711be989131a92e8e6fa12c5c98dc206b..151ee77caa8bd5b05ca123c7dd11727f1f7d14e0 100644 (file)
@@ -901,7 +901,7 @@ void main(void)
 
                        if self.viewMode == 'overhang':
                                self._objectOverhangShader.bind()
-                               self._objectOverhangShader.setUniform('cosAngle', math.cos(math.radians(60)))
+                               self._objectOverhangShader.setUniform('cosAngle', math.cos(math.radians(90 - 60)))
                        else:
                                self._objectShader.bind()
                        for obj in self._scene.objects():